Changeset 50767
- Timestamp:
- 04/17/2021 12:20:44 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-walker-nav-menu-edit.php
r48076 r50767 93 93 'menu-item menu-item-depth-' . $depth, 94 94 'menu-item-' . esc_attr( $item->object ), 95 'menu-item-edit-' . ( ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) ? 'active' : 'inactive' ),95 'menu-item-edit-' . ( ( isset( $_GET['edit-menu-item'] ) && $item_id === $_GET['edit-menu-item'] ) ? 'active' : 'inactive' ), 96 96 ); 97 97 … … 111 111 112 112 $submenu_text = ''; 113 if ( 0 == $depth ) {113 if ( 0 === $depth ) { 114 114 $submenu_text = 'style="display: none;"'; 115 115 } … … 158 158 </span> 159 159 <?php 160 if ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) {160 if ( isset( $_GET['edit-menu-item'] ) && $item_id === $_GET['edit-menu-item'] ) { 161 161 $edit_url = admin_url( 'nav-menus.php' ); 162 162 } else {
Note: See TracChangeset
for help on using the changeset viewer.