Opened 2 years ago
#17374 new defect (bug)
get_pages() with child_of forgets sort
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | General | Version: | 3.1.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
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
Note: See
TracTickets for help on using
tickets.
