Wordpress 2.1.3 Breaks is_home()
I spent the best part of this morning upgrading Wordpress on this and my personal site. My personal site upgraded without any problems (that I’ve noticed), however I encountered problems here.
Firstly, I lost all of my pages. No idea where they went, but they just disappeared. Luckily, I only have a few so they were easy to re-create.
The next problem I encountered is with my theme. It appears that if you call query_posts() within “the loop” (for multiple loops), then is_home() no longer returns TRUE when you’re on the home page. This was quickly resolved by implementing one of the other methods for using multiple loops.
Whilst this is fine for me, I think this is a bit of a silly change for non-techie people. Suddenly their themes are not going to work as they did before, and they’re not going to know why. It’s also an undocumented change in behaviour.
If you spot any problems, please let me know in the comments.
2 Responses to “Wordpress 2.1.3 Breaks is_home()”
Leave a Reply 
Search
Related Entries
- Now Running Wordpress 2.5 RC2
- Wordpress 2.5 Now Available
- Experimenting with Wordpress Option Autoloading
- Debugging Wordpress
- Wordpress is a Memory Hog
- Pedantic Wordpress
- Update on Wordpress Autoload Option Experimentation
- Time to Live By The Seat of My Pants
- HOWTO: Change Wordpress Table Prefix
- Welcome To My Tech Stuff





I would be interested to know how you resolved this …
I changed my theme code to use a new instance of the
WP_Querymethod instead ofquery_postsas follows:$my_query = new WP_Query("cat=$tmpcat&showposts=3"); while ($my_query->have_posts()) { $my_query->the_post(); [... other code here ...] }I set $tmpcat to the relevant category number elsewhere.