From 1de1f27249db79d2644e546a385b43f7266f3a49 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Wed, 5 Mar 2014 23:21:11 +0000 Subject: [PATCH] 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 --- src/wp-admin/menu-header.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/menu-header.php b/src/wp-admin/menu-header.php index 111aa5b293..1771fb0f8a 100644 --- a/src/wp-admin/menu-header.php +++ b/src/wp-admin/menu-header.php @@ -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.