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

See #32444.

Built from https://develop.svn.wordpress.org/trunk@32545


git-svn-id: http://core.svn.wordpress.org/trunk@32515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor
2015-05-22 05:47:25 +00:00
parent 1fa7958fe8
commit af7a017f46
10 changed files with 18 additions and 36 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