[wp-trac] [WordPress Trac] #9514: Add 'page' class to the
get_body_class() function
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 11 23:44:29 GMT 2009
#9514: Add 'page' class to the get_body_class() function
-------------------------+--------------------------------------------------
Reporter: nathanrice | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.8
Component: Themes | Version: 2.8
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Currently, there is no 'page' class assigned to the $classes array in the
get_body_class() function. Consequently, there would be no way for CSS to
target "all pages" with a single selector.
This is my first ticket, so I hope I did this the right way.
I've attached a diff file that adds the following code to wp-includes
/post-template.php within the is_page() conditional:
{{{
if ($pageID != get_option('page_for_posts'))
$classes[] = 'page';
}}}
I feel like this is an important addition to the classes that this
function generates.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9514>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list