mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Notice fixes from Viper007Bond. see #7509
git-svn-id: https://develop.svn.wordpress.org/trunk@9515 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1082,8 +1082,9 @@ class Walker {
|
||||
$id_field = $this->db_fields['id'];
|
||||
$id = $e->$id_field;
|
||||
|
||||
foreach ( (array)$children_elements[$id] as $child )
|
||||
$this->unset_children( $child, $children_elements );
|
||||
if ( !empty($children_elements[$id]) && is_array($children_elements[$id]) )
|
||||
foreach ( (array) $children_elements[$id] as $child )
|
||||
$this->unset_children( $child, $children_elements );
|
||||
|
||||
if ( isset($children_elements[$id]) )
|
||||
unset( $children_elements[$id] );
|
||||
|
||||
Reference in New Issue
Block a user