Don't loosely compare functions that return bool against a literal bool.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32730 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-06-12 17:18:38 +00:00
parent 40c54bc238
commit 3f29a2101d
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ unset($id, $data, $subs, $first_sub);
$separator_found = false;
foreach ( $menu as $id => $data ) {
if ( 0 == strcmp('wp-menu-separator', $data[4] ) ) {
if (false == $separator_found) {
if ( ! $separator_found ) {
$separator_found = true;
} else {
unset($menu[$id]);