Ticket #40927: 40927.2.diff
File 40927.2.diff, 513 bytes (added by , 4 years ago) |
---|
-
plugin.php
1093 1093 1094 1094 $new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $icon_class . $hookname, $hookname, $icon_url ); 1095 1095 1096 if ( ! is_int( $position ) && ! is_string( $position ) ) { 1097 $position = (string) $position; 1098 } 1099 1096 1100 if ( null === $position ) { 1097 1101 $menu[] = $new_menu; 1098 1102 } elseif ( isset( $menu[ "$position" ] ) ) {