[wp-trac] [WordPress Trac] #14477: get_pages with child_of only works with uninterrupted hierarchies

WordPress Trac noreply at wordpress.org
Tue Dec 2 03:14:05 UTC 2014


#14477: get_pages with child_of only works with uninterrupted hierarchies
-----------------------------------+-----------------------------
 Reporter:  vividvisions           |       Owner:  wonderboymusic
     Type:  enhancement            |      Status:  reopened
 Priority:  high                   |   Milestone:  4.1
Component:  Query                  |     Version:  3.0
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+-----------------------------

Comment (by dd32):

 > get_pages() by default returns posts in Alphabetical order, the catch is
 that this is respected amongst the hierarchy, so `BB => AAA` should be
 returned as `BB, AAA`, not `AAA, BB`.


 For completeness, and to say that the bug doesn't lie entirely within the
 `Walker_Page`, [attachment:14477-41-broken-ut.3.diff 14477-41-broken-
 ut.3.diff] also shows that the `hierarchical` parameter (which is false in
 `wp_list_pages()`, go figure) is now broken.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/14477#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list