Make WordPress Core

Ticket #26630: 26630.6.patch

File 26630.6.patch, 684 bytes (added by ocean90, 12 years ago)
  • src/wp-admin/menu-header.php

     
    7777
    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
    8384                // so an icon can be added to div.wp-menu-image as background with CSS.