Walker fix for when non elements are top-level. Props hailin. fixes #8150
git-svn-id: https://develop.svn.wordpress.org/trunk@9685 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
de15b5064d
commit
7011c77128
@ -911,7 +911,8 @@ class Walker {
|
||||
*/
|
||||
if ( empty($top_level_elements) ) {
|
||||
|
||||
$root = $elements[0];
|
||||
$first = array_slice( $elements, 0, 1 );
|
||||
$root = $first[0];
|
||||
|
||||
$top_level_elements = array();
|
||||
$children_elements = array();
|
||||
|
Loading…
Reference in New Issue
Block a user