mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Coding Standards: Use strict comparison in wp-admin/includes/class-walker-nav-menu-edit.php.
See #52627. git-svn-id: https://develop.svn.wordpress.org/trunk@50767 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -92,7 +92,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
||||
$classes = array(
|
||||
'menu-item menu-item-depth-' . $depth,
|
||||
'menu-item-' . esc_attr( $item->object ),
|
||||
'menu-item-edit-' . ( ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) ? 'active' : 'inactive' ),
|
||||
'menu-item-edit-' . ( ( isset( $_GET['edit-menu-item'] ) && $item_id === $_GET['edit-menu-item'] ) ? 'active' : 'inactive' ),
|
||||
);
|
||||
|
||||
$title = $item->title;
|
||||
@@ -110,7 +110,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
||||
$title = ( ! isset( $item->label ) || '' === $item->label ) ? $title : $item->label;
|
||||
|
||||
$submenu_text = '';
|
||||
if ( 0 == $depth ) {
|
||||
if ( 0 === $depth ) {
|
||||
$submenu_text = 'style="display: none;"';
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
||||
?>
|
||||
</span>
|
||||
<?php
|
||||
if ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) {
|
||||
if ( isset( $_GET['edit-menu-item'] ) && $item_id === $_GET['edit-menu-item'] ) {
|
||||
$edit_url = admin_url( 'nav-menus.php' );
|
||||
} else {
|
||||
$edit_url = add_query_arg(
|
||||
|
||||
Reference in New Issue
Block a user