mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Fix parens in walker. Props hailin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b2527163db
commit
3ea6a438f9
@ -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