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

props kovshenin for noticing and testing.
see #26630.

git-svn-id: https://develop.svn.wordpress.org/trunk@27425 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2014-03-05 23:21:11 +00:00
parent 19ac705e60
commit 1de1f27249
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
$class = $class ? ' class="' . join( ' ', $class ) . '"' : '';
$id = ! empty( $item[5] ) ? ' id="' . preg_replace( '|[^a-zA-Z0-9_:.]|', '-', $item[5] ) . '"' : '';
$img = $img_style = $img_class = '';
$img = $img_style = '';
$img_class = ' dashicons-before';
// if the string 'none' (previously 'div') is passed instead of an URL, don't output the default menu image
// so an icon can be added to div.wp-menu-image as background with CSS.