[wp-trac] [WordPress Trac] #10745: Add number parameter to wp_list_pages()

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 27 21:38:42 UTC 2010

#10745: Add number parameter to wp_list_pages()
 Reporter:  security_man  |       Owner:                
     Type:  defect (bug)  |      Status:  new           
 Priority:  normal        |   Milestone:  Future Release
Component:  General       |     Version:  2.8.4         
 Severity:  normal        |    Keywords:  needs-patch   
Changes (by topcat123):

  * type:  enhancement => defect (bug)


 The codex claims this feature is already implemented:


 However, the SQL LIMIT argument passed into get_pages() from wp_list-
 pages() is limiting the results before the filters are applied.

 See line 3181 onwards in post.php:


 I suggest the LIMIT is abandoned and instead a manual restriction on qty
 of results returned is implemented at the end of the get_pages() function.

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

More information about the wp-trac mailing list