[wp-trac] Re: [WordPress Trac] #2959: wp_list_pages does not add current_page_item class on page_for_posts

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 7 15:01:53 GMT 2007


#2959: wp_list_pages does not add current_page_item class on page_for_posts
-----------------------------------+----------------------------------------
 Reporter:  skeltoac               |        Owner:  skeltoac
     Type:  defect                 |       Status:  reopened
 Priority:  normal                 |    Milestone:  2.1.3   
Component:  Template               |      Version:  2.1     
 Severity:  normal                 |   Resolution:          
 Keywords:  has-patch 2nd-opinion  |  
-----------------------------------+----------------------------------------
Comment (by jhodgdon):

 See also  #3910 - a duplicate of this bug.

 So I finally understand how to reproduce the bug (and agree it is a bug):

 a) Make a few pages in WordPress

 b) On the Options / Reading page, choose one of your pages to be the
 "posts page", and update.

 c) Make sure wp_list_pages is in the blog sidebar for your theme.

 d) Visit the blog page. Click on the page that you chose as the "posts
 page", and you will see posts, but the CSS class for the LI in the posts
 list on the right is not set to be "current_page_item". Click on a
 different page, and when that page is displayed, the LI class is set to
 "current_page_item".

 Is that right? I'll test the patch above.

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


More information about the wp-trac mailing list