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: #F00;
}

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.

One Comment

Posted March 2, 2008 at 9:28 am | Permalink

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 shared. Required fields are marked *

*
*
By submitting a comment, you hereby grant perpetual license to reproduce your words, name, and/or Web site in attribution.


You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser