mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Revert placement of Help and Screen Options to under the admin bar on the right, see #18197, see #18785
git-svn-id: https://develop.svn.wordpress.org/trunk@19130 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -616,22 +616,6 @@ function wp_admin_bar_updates_menu( $wp_admin_bar ) {
|
||||
$wp_admin_bar->add_menu( array( 'id' => 'updates', 'title' => $update_title, 'href' => network_admin_url( 'update-core.php' ) ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Add help link.
|
||||
*
|
||||
* @since 3.3.0
|
||||
*/
|
||||
function wp_admin_bar_help_menu( $wp_admin_bar ) {
|
||||
$wp_admin_bar->add_menu( array(
|
||||
'id' => 'help',
|
||||
'title' => __('Help'),
|
||||
'href' => '#',
|
||||
'meta' => array(
|
||||
'class' => 'screen-meta-toggle hide-if-no-js',
|
||||
),
|
||||
) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Add search form.
|
||||
*
|
||||
|
||||
@@ -201,13 +201,10 @@ class WP_Admin_Bar {
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu', 80 );
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_shortlink_menu', 90 );
|
||||
|
||||
if ( ! is_admin() ) {
|
||||
if ( ! is_admin() )
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 100 );
|
||||
} else {
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_help_menu', 90 );
|
||||
}
|
||||
|
||||
do_action( 'add_admin_bar_menus' );
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -178,17 +178,14 @@
|
||||
}
|
||||
|
||||
#wpadminbar.nojs .ab-top-menu > li.menupop:hover,
|
||||
#wpadminbar .ab-top-menu li.menupop.hover,
|
||||
#wpadminbar .ab-top-menu .selected.screen-meta-toggle {
|
||||
#wpadminbar .ab-top-menu li.menupop.hover {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
#wpadminbar.nojs .quicklinks .menupop:hover a,
|
||||
#wpadminbar.nojs .quicklinks .menupop:hover span,
|
||||
#wpadminbar .quicklinks .menupop.hover a,
|
||||
#wpadminbar .quicklinks .menupop.hover span,
|
||||
#wpadminbar .ab-top-menu .selected.screen-meta-toggle a,
|
||||
#wpadminbar .ab-top-menu .selected.screen-meta-toggle span {
|
||||
#wpadminbar .quicklinks .menupop.hover span {
|
||||
color: #333;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20101110' );
|
||||
|
||||
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20111029', 1 );
|
||||
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20111103', 1 );
|
||||
$scripts->add_script_data( 'common', 'commonL10n', array(
|
||||
'warnDelete' => __("You are about to permanently delete the selected items.\n 'Cancel' to stop, 'OK' to delete.")
|
||||
) );
|
||||
@@ -431,13 +431,13 @@ function wp_default_styles( &$styles ) {
|
||||
// Any rtl stylesheets that don't have a .dev version for ltr
|
||||
$no_suffix = array( 'farbtastic' );
|
||||
|
||||
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20111101' );
|
||||
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20111103' );
|
||||
|
||||
$styles->add( 'ie', "/wp-admin/css/ie$suffix.css", array(), '20111015' );
|
||||
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );
|
||||
|
||||
// all colors stylesheets need to have the same query strings (cache manifest compat)
|
||||
$colors_version = '20111102';
|
||||
$colors_version = '20111103';
|
||||
|
||||
// Register "meta" stylesheet for admin colors. All colors-* style sheets should have the same version string.
|
||||
$styles->add( 'colors', true, array('wp-admin'), $colors_version );
|
||||
|
||||
Reference in New Issue
Block a user