[29 May 2009] Turned out I have been Aril Fooled. WordPress 2.8 should be released real soon (31st May according to the WordPress Trac). Added 2 more new functions: comments_open and pings_open.
With the release date for WordPress v2.8 scheduled on 1st April, I believe the theme codes are more or less stable. Not much changes between v2.7 and v2.8, thankfully. The current themes should work just fine without any modifications on v2.8. Basically 4 new functions were introduced: body_class(), automatic_feed_links(), comments_open(), pings_open().
Found in header.php
<body <?php body_class(); ?>>
Display css classes for the body element.
Found in functions.php
This will automatically generate all the relevant feed links. You may need to remove current hard-coded feed links in header.php e.g
<link rel="alternate" type="application/rss xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
Found in single.php and comments.php
if ( comments_open() )
Checks whether the current post is open for comments
Found in single.php
if ( pings_open() )
Checks whether the current post is open for pings
Browse and Share
» Subscribe to Feed
» Leave a Comment
» Themes and Plugins Compatibility on WP 3.0
» How to Show Only Parent Category in a Post
» Themes and Plugins Compatibility on WP 3.2
» Newer Post: WP Theme: Video Flick
« Previous Post: WP Theme: Woogle The Google Search Engine Clone