mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 10:14:31 +00:00
Menu updates: single top level menus, B&W/color icons (sprite), fix for the Firefox bug of not firing mouseout on absolute positioned elements over textareas/text fields, scaling down properly for different user roles, includes patch by Ryan, fixes #7966
git-svn-id: https://develop.svn.wordpress.org/trunk@9578 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -549,10 +549,9 @@ function add_menu_page( $page_title, $menu_title, $access_level, $file, $functio
|
||||
add_action( $hookname, $function );
|
||||
|
||||
if ( empty($icon_url) )
|
||||
$icon_url = 'images/menu/generic.png';
|
||||
$icon_url = 'images/generic.png';
|
||||
|
||||
$menu[] = array ( $menu_title, $access_level, $file, $page_title, 'menu-top-single ' . $hookname, $hookname, $icon_url );
|
||||
$menu[] = array ( '', $access_level, '', '', 'wp-menu-separator-last' );
|
||||
$menu[] = array ( $menu_title, $access_level, $file, $page_title, 'menu-top ' . $hookname, $hookname, $icon_url );
|
||||
|
||||
return $hookname;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user