[wp-trac] [WordPress Trac] #3049: wrong class attribution for wp_list_pages when author template is called...

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 18 14:41:17 GMT 2006


#3049: wrong class attribution for wp_list_pages when author template is called...
-------------------------+--------------------------------------------------
 Reporter:  tripleshift  |       Owner:  anonymous                                   
     Type:  defect       |      Status:  new                                         
 Priority:  normal       |   Milestone:                                              
Component:  Template     |     Version:  2.0.4                                       
 Severity:  normal       |    Keywords:  wp_list_pages, current_list_item, author.php
-------------------------+--------------------------------------------------
 i recently came across this issue while studing the wordpress template
 system and functions.

 if i got it right, "wp_list_pages" function is supposed to give a
 "current_page_item" class to the list item whose page is actually called.

 i noticed that when the author.php template is called through
 "the_author_posts_link" function, and the ID of the user/author called is
 the same of one of the pages, the page list item generated by
 "wp_list_pages" gets the "current_page_item" class as well.

 example:
 user "john doe" with "id=3" has 3 posts and through a link generated by
 "the_author_posts_link" (put inside the loop) gets his post listed in a
 page generated through the auhtor.php template.

 if the condition exists that one of the existent pages (listed by
 "wp_list_pages") has id="3" (the same as the user/author), then a
 "current_page_item" class is given to the list item containing the link to
 the page, even if the page IS NOT "current".

 i truly hope what i wrote was clear, i truly hope i didn't file an already
 existent report.

 bye
 tripleshift

 ...

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3049>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list