Trunk Users Beware

Half an hour ago I committed a number of WordPress 2.5-specific changes to the Sandbox SVN. And thanks to a much improved Google Code interface, you can see the changes for revision 226.

This means if you using the Sandbox /trunk/ with WordPress 2.3.x and you svn up, well, you’re going to get some errors. Apologies.

There are also a number of new classes for the body: body.page-parent, body.page-child. My favorite new class, though, is the new .untagged class for posts without tags. So far WordPress hasn’t provided a good way to search for untagged posts. Well, add .untagged { color: red; } and you’ll figure out quickly which posts are untagged. Crude, but fun.

I’m quite excited about the use of get_avatar and much richer hCards for commentators. You’ll now see the appropriate use of a.url for commentators with links and img.photo with avatars.

I also looked at how to best use the new is_front_page() function. There has always been a body.home class, so now I had to differentiate .home and, well, something else.

So right now we have is_front_page() producing body.home and is_home() producing body.blog. As the front page will be the, er, home page, and the home page will be the page with blog posts.

So chew on that sentence and then figure it out.

Comments

  1. adam wrote:

    hmmm, interesting. i think the last sentence will probably break a bunch of my layouts (until i find & replace body.home with body.blog), but it’s probably more clear. in the interest of content-agnosticism and matching Options > Reading, might body.posts be better?

Post a Comment

Your email is never published nor shared. Required fields are marked *

*

*