Make WordPress Core


Ignore:
Timestamp:
11/06/2012 12:25:18 AM (13 years ago)
Author:
nacin
Message:

HiDPI versions of the generic menu page icon. props empireoflight, lessbloat. see #21019.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r21877 r22393  
    903903        add_action( $hookname, $function );
    904904
    905     if ( empty($icon_url) )
    906         $icon_url = esc_url( admin_url( 'images/generic.png' ) );
    907     else
     905    if ( empty($icon_url) ) {
     906        $icon_url = 'none';
     907        $icon_class = 'menu-icon-generic ';
     908    } else {
    908909        $icon_url = set_url_scheme( $icon_url );
    909 
    910     $new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $hookname, $hookname, $icon_url );
     910        $icon_class = '';
     911    }
     912
     913    $new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $icon_class . $hookname, $hookname, $icon_url );
    911914
    912915    if ( null === $position )
Note: See TracChangeset for help on using the changeset viewer.