Make WordPress Core

Changeset 35590


Ignore:
Timestamp:
11/09/2015 09:59:11 PM (9 years ago)
Author:
obenland
Message:

Menu: Continue to use post dashicon as default menu icon.

Prevents a bug where custom post types without a specified menu icon would
adopt the menu icon of the preceding post type. Introduced in [33723].

See #16865.
Fixes #34637.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/menu.php

    r34723 r35590  
    8787    $ptype_for_id = sanitize_html_class( $ptype );
    8888
     89    $menu_icon = 'dashicons-admin-post';
    8990    if ( is_string( $ptype_obj->menu_icon ) ) {
    9091        // Special handling for data:image/svg+xml and Dashicons.
Note: See TracChangeset for help on using the changeset viewer.