Don't do hierarchical if includes specified. Props Kafkaesqui. fixes #5373 for 2.4

git-svn-id: https://develop.svn.wordpress.org/trunk@6491 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-12-24 21:24:03 +00:00
parent 6da1524825
commit d061a16188

View File

@ -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 ) {