#25750 closed defect (bug) (fixed)
Regression in get_pages: hierarchical is disabled when using default arguments
| Reported by: | chrisjean | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7.1 |
| Component: | Query | Version: | 3.7 |
| Severity: | major | Keywords: | has-patch commit |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Introduced in [25270].