From 192afe238a8692e5fb39a018e177f8b09e9ad6d9 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Wed, 5 Mar 2014 23:22:15 +0000 Subject: [PATCH] Admin Menu: Use `.dashicons-before` as default $img_class. props kovshenin for noticing and testing. see #26630. Built from https://develop.svn.wordpress.org/trunk@27425 git-svn-id: http://core.svn.wordpress.org/trunk@27272 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/menu-header.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/menu-header.php b/wp-admin/menu-header.php index 111aa5b293..1771fb0f8a 100644 --- a/wp-admin/menu-header.php +++ b/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.