Make WordPress Core

Ticket #34637: 34637.diff

File 34637.diff, 689 bytes (added by obenland, 9 years ago)
  • src/wp-admin/menu.php

     
    8686        $ptype_menu_position = is_int( $ptype_obj->menu_position ) ? $ptype_obj->menu_position : ++$_wp_last_object_menu; // If we're to use $_wp_last_object_menu, increment it first.
    8787        $ptype_for_id = sanitize_html_class( $ptype );
    8888
     89        $menu_icon = '';
    8990        if ( is_string( $ptype_obj->menu_icon ) ) {
    9091                // Special handling for data:image/svg+xml and Dashicons.
    9192                if ( 0 === strpos( $ptype_obj->menu_icon, 'data:image/svg+xml;base64,' ) || 0 === strpos( $ptype_obj->menu_icon, 'dashicons-' ) ) {