Fix parens in walker. Props hailin.
git-svn-id: https://develop.svn.wordpress.org/trunk@7454 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e0dcd9e128
commit
004b469e34
@ -503,10 +503,11 @@ class Walker {
|
||||
for ( $i = 0; $i < sizeof( $children_elements ); $i++ ) {
|
||||
|
||||
$child = $children_elements[$i];
|
||||
if ($root->$parent_field == $child->$parent_field )
|
||||
if ($root->$parent_field == $child->$parent_field ) {
|
||||
$top_level_elements[] = $child;
|
||||
array_splice( $children_elements, $i, 1 );
|
||||
$i--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user