When calling unset(), it is unnecessary to immediately precede it with a call to isset().

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32545 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-05-22 05:46:47 +00:00
parent 06ea5c78be
commit 46752a491e
9 changed files with 17 additions and 35 deletions

View File

@@ -408,9 +408,7 @@ class Walker {
foreach ( (array) $children_elements[$id] as $child )
$this->unset_children( $child, $children_elements );
if ( isset($children_elements[$id]) )
unset( $children_elements[$id] );
unset( $children_elements[ $id ] );
}
} // Walker