[wp-trac] Re: [WordPress Trac] #6510: [2.5] wp_list_pages "exclude" arg no longer works as advertised

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 16 04:12:35 GMT 2008


#6510: [2.5] wp_list_pages "exclude" arg no longer works as advertised
------------------------+---------------------------------------------------
 Reporter:  lyzadanger  |        Owner:  hailin  
     Type:  defect      |       Status:  reopened
 Priority:  normal      |    Milestone:  2.6     
Component:  General     |      Version:  2.5     
 Severity:  normal      |   Resolution:          
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by jamescollins):

 Replying to [comment:2 hailin]:
 > This issue is caused by a statement ($r['hierarchical'] = 0)
 > in post-template.php.
 >
 > I believe Ryan put there because he wanted to improve the performance of
 page listing.
 >
 > post-template.php
 > -----------------
 >
 > // Query pages.
 > $r['hierarchical'] = 0;  <== caused the issue !!
 > $pages = get_pages($r);
 >
 I can confirm that commenting out this line fixes the problem. This change
 was made in ticket #5458 (revision [6399]).

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


More information about the wp-trac mailing list