[wp-trac] Re: [WordPress Trac] #6664: Add CSS class 'current_page_parent' for posts when static posts page set

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 19 21:09:04 GMT 2008


#6664: Add CSS class 'current_page_parent' for posts when static posts page set
------------------------------+---------------------------------------------
 Reporter:  joshgerdes        |        Owner:  ryan
     Type:  defect            |       Status:  new 
 Priority:  normal            |    Milestone:  2.9 
Component:  General           |      Version:  2.5 
 Severity:  normal            |   Resolution:      
 Keywords:  has-patch tested  |  
------------------------------+---------------------------------------------
Comment (by betsyk):

 I'm preferring a slightly different version of this solution, which I've
 been tracking  since February on my blog at:
 http://www.umaitech.com/cms/?p=27. Currently for WP 2.6.2, new lines
 577-580 in classes.php:

 if ( empty($current_page) ) {
 if ($page->ID == get_settings('page_for_posts'))
 $css_class .= ' current_page_parent';
 }

 This also fixes #7518.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6664#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list