[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 Mar 31 23:01:10 GMT 2008


#6510: [2.5] wp_list_pages "exclude" arg no longer works as advertised
------------------------+---------------------------------------------------
 Reporter:  lyzadanger  |        Owner:  hailin  
     Type:  defect      |       Status:  assigned
 Priority:  normal      |    Milestone:  2.7     
Component:  General     |      Version:  2.5     
 Severity:  normal      |   Resolution:          
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by 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);

 We probably need to rethink about how to take advantage of the fact that
 new walker class no longer depends on pages being in certain order.
 (perhaps we don't need to store pages in options anymore, thus making
 import much faster).

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


More information about the wp-trac mailing list