id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses
6664,Add CSS class 'current_page_parent' for posts when static posts page set,joshgerdes,ryan,"The problem arises when you have set a specific page as the ‘posts page’ for the site. When you are on a post the expected result would be for the ‘current_page_parent’ class to be set in the menu for the page you specified as the ‘posts page’ in for the site. This is not the result you get with the release 2.5 version of Wordpress. After a little digging I found the following fixes the issue:
Add these lines to wp-includes/classes.php after line 562:
{{{
elseif ($page->ID == get_settings(’page_for_posts’))
$css_class .= ‘ current_page_parent’;
}}}
I have attached a patch for this bug. It has been tested again SVN revision 7638.
",enhancement,closed,normal,2.9,Template,2.5,normal,fixed,needs-patch reporter-feedback,,