I have written a plugin that depends on hierarchical=1 along with include= … specifically, I create a page-list that shows an indented “breadcrumb-style” list of pages from top-level down to your current location, along with all the current page’s “brothers” and “uncles” etc. up to the main level.
The patch #5373 breaks this functionality, because my “&hierarchical=1” gets overridden, and the page structure collapses.
In other words, $hierarchical needs to default to 1 if &include= is not specified, and default to 0 if &include= is specified. But now an explicit specification gets discarded.
One way to solve this is change line 1146 to be:
if ($hierarchical == 1) $hierarchical = false;
and line 1126, make the default “2” (so an explicit “1” won’t override):
‘sort_column’ => ‘post_title’, ‘hierarchical’ => 2,
Perhaps there’s a more elegant way of making a “dependent default” but this makes all cases work.
— \\/illiam