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:
Ryan Boren 2008-11-14 18:10:58 +00:00
parent de15b5064d
commit 7011c77128
1 changed files with 2 additions and 1 deletions

View File

@ -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();