Make WordPress Core

Ticket #34637: 34637.2.diff

File 34637.2.diff, 761 bytes (added by obenland, 9 years ago)

Setting a true default menu icon.

  • 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 = $ptype_obj->hierarchical ? 'dashicons-admin-page' : 'dashicons-admin-post';
    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-' ) ) {