Changeset 47550 for trunk/src/wp-admin/menu.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu.php
r47434 r47550 136 136 $menu_icon = esc_url( $ptype_obj->menu_icon ); 137 137 } 138 } elseif ( in_array( $ptype, $builtin ) ) {138 } elseif ( in_array( $ptype, $builtin, true ) ) { 139 139 $menu_icon = 'dashicons-admin-' . $ptype; 140 140 } … … 153 153 } 154 154 155 if ( in_array( $ptype, $builtin ) ) {155 if ( in_array( $ptype, $builtin, true ) ) { 156 156 $ptype_menu_id = 'menu-' . $ptype_for_id . 's'; 157 157 } else { … … 163 163 */ 164 164 $core_menu_positions = array( 59, 60, 65, 70, 75, 80, 85, 99 ); 165 while ( isset( $menu[ $ptype_menu_position ] ) || in_array( $ptype_menu_position, $core_menu_positions ) ) {165 while ( isset( $menu[ $ptype_menu_position ] ) || in_array( $ptype_menu_position, $core_menu_positions, true ) ) { 166 166 $ptype_menu_position++; 167 167 }
Note: See TracChangeset
for help on using the changeset viewer.