[wp-trac] [WordPress Trac] #21423: wp_list_pages() is not aware of the current page inside the loop so the correct css classes are not set

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 30 14:46:55 UTC 2012


#21423: wp_list_pages() is not aware of the current page inside the loop so the
correct css classes are not set
-------------------------------+------------------------------
 Reporter:  thedaysse          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.4.1
 Severity:  minor              |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by nacin):

 * keywords:   => reporter-feedback


Comment:

 Can you provide some code to reproduce your problem? I'm not sure I
 understand "Because is_page() doesn't work inside the loop any widget that
 calls wp_list_pages() also fails". is_page() works just fine anywhere in a
 theme, based on whatever the main loop is.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21423#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list