- Timestamp:
- 05/16/2020 06:40:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-walker-nav-menu-edit.php
r47190 r47808 73 73 $original_title = false; 74 74 75 if ( 'taxonomy' == $item->type ) {75 if ( 'taxonomy' === $item->type ) { 76 76 $original_object = get_term( (int) $item->object_id, $item->object ); 77 77 if ( $original_object && ! is_wp_error( $original_title ) ) { 78 78 $original_title = $original_object->name; 79 79 } 80 } elseif ( 'post_type' == $item->type ) {80 } elseif ( 'post_type' === $item->type ) { 81 81 $original_object = get_post( $item->object_id ); 82 82 if ( $original_object ) { 83 83 $original_title = get_the_title( $original_object->ID ); 84 84 } 85 } elseif ( 'post_type_archive' == $item->type ) {85 } elseif ( 'post_type_archive' === $item->type ) { 86 86 $original_object = get_post_type_object( $item->object ); 87 87 if ( $original_object ) { … … 102 102 /* translators: %s: Title of an invalid menu item. */ 103 103 $title = sprintf( __( '%s (Invalid)' ), $item->title ); 104 } elseif ( isset( $item->post_status ) && 'draft' == $item->post_status ) {104 } elseif ( isset( $item->post_status ) && 'draft' === $item->post_status ) { 105 105 $classes[] = 'pending'; 106 106 /* translators: %s: Title of a menu item in draft status. */ … … 108 108 } 109 109 110 $title = ( ! isset( $item->label ) || '' == $item->label ) ? $title : $item->label;110 $title = ( ! isset( $item->label ) || '' === $item->label ) ? $title : $item->label; 111 111 112 112 $submenu_text = ''; … … 182 182 183 183 <div class="menu-item-settings wp-clearfix" id="menu-item-settings-<?php echo $item_id; ?>"> 184 <?php if ( 'custom' == $item->type ) : ?>184 <?php if ( 'custom' === $item->type ) : ?> 185 185 <p class="field-url description description-wide"> 186 186 <label for="edit-menu-item-url-<?php echo $item_id; ?>">
Note: See TracChangeset
for help on using the changeset viewer.