[wp-trac] [WordPress Trac] #17374: get_pages() with child_of forgets sort

WordPress Trac wp-trac at lists.automattic.com
Wed May 11 10:06:18 UTC 2011


#17374: get_pages() with child_of forgets sort
--------------------------+-----------------------------
 Reporter:  janfabry      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.1.2
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 If you call {{{get_pages()}}} with both the {{{child_of}}} and
 {{{sort_column}}}, the sorting is not applied.

 {{{child_of}}} makes it select all pages (sorted) and later applies a
 subselect via {{{get_page_children()}}}. This subselect can mess up the
 sort order.

 An example was reported on
 http://wordpress.stackexchange.com/questions/16921/get-pages-not-ordering-
 as-it-should

 Related: #12821

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


More information about the wp-trac mailing list