Don't do hierarchical if includes specified. Props Kafkaesqui. fixes #5373 for 2.4
git-svn-id: http://svn.automattic.com/wordpress/trunk@6491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0da0bf3436
commit
7541abd7e5
|
@ -1611,6 +1611,7 @@ function &get_pages($args = '') {
|
|||
$exclude = '';
|
||||
$meta_key = '';
|
||||
$meta_value = '';
|
||||
$hierarchical = false;
|
||||
$incpages = preg_split('/[\s,]+/',$include);
|
||||
if ( count($incpages) ) {
|
||||
foreach ( $incpages as $incpage ) {
|
||||
|
|
Loading…
Reference in New Issue