mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
Admin menu: double-click icon to go to default (first) location, show section header when folded
git-svn-id: https://develop.svn.wordpress.org/trunk@9196 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -79,7 +79,7 @@ function _wp_menu_output( &$menu, &$submenu, $submenu_as_parent = true ) {
|
||||
}
|
||||
|
||||
if ( !empty($submenu[$item[2]]) ) {
|
||||
echo "\n\t<ul class='wp-submenu'>";
|
||||
echo "\n\t<ul class='wp-submenu'><li class='wp-submenu-head' style='display:none;'>{$item[0]}</li>";
|
||||
$first = true;
|
||||
foreach ( $submenu[$item[2]] as $sub_key => $sub_item ) {
|
||||
if ( !current_user_can($sub_item[1]) )
|
||||
|
||||
Reference in New Issue
Block a user