WordPress.org

Make WordPress Core

Changeset 27425


Ignore:
Timestamp:
03/05/2014 11:21:11 PM (8 years ago)
Author:
ocean90
Message:

Admin Menu: Use .dashicons-before as default $img_class.

props kovshenin for noticing and testing.
see #26630.

File:
1 edited

Legend:

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

    r27418 r27425  
    7878        $class = $class ? ' class="' . join( ' ', $class ) . '"' : '';
    7979        $id = ! empty( $item[5] ) ? ' id="' . preg_replace( '|[^a-zA-Z0-9_:.]|', '-', $item[5] ) . '"' : '';
    80         $img = $img_style = $img_class = '';
     80        $img = $img_style = '';
     81        $img_class = ' dashicons-before';
    8182
    8283        // if the string 'none' (previously 'div') is passed instead of an URL, don't output the default menu image
Note: See TracChangeset for help on using the changeset viewer.