mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user