#25750 closed defect (bug) (fixed)
Regression in get_pages: hierarchical is disabled when using default arguments
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.7.1 | Priority: | normal |
Severity: | major | Version: | 3.7 |
Component: | Query | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
With default arguments, get_pages has the following relevant arguments:
hierarchical: 1
parent: -1
child_of: 0
The 3.7 release included the following code:
if ( $parent && ! $child_of ) $hierarchical = false;
This causes the default arguments listed above to change into:
hierarchical: false
parent: -1
child_of: 0
Thus, it is impossible to enable hierarchical if parent is set to -1, which it is by default.
Attachments (3)
Change History (12)
Note: See
TracTickets for help on using
tickets.
Introduced in [25270].