From c20a7fc4417ee026cfd929b18ec2faf1be80c4dc Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Mon, 4 Oct 2010 04:16:33 +0000 Subject: [PATCH] Do not load adminbar css in media uploader. See #14772 git-svn-id: https://develop.svn.wordpress.org/trunk@15696 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/admin-bar.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index f6ee71e710..eb57d1713d 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -229,10 +229,7 @@ add_action( 'wp_before_admin_bar_render', 'wp_admin_bar_edit_menu', 100 ); function wp_admin_bar_css() { global $pagenow, $wp_locale; - if ( !is_user_logged_in() ) - return false; - - if ( 'press-this.php' == $pagenow || 'update.php' == $pagenow ) + if ( !is_user_logged_in() || 'press-this.php' == $pagenow || 'update.php' == $pagenow || 'media-upload.php' == $pagenow ) return; $nobump = false; @@ -294,9 +291,9 @@ function wp_admin_bar_js() { var par = jQuery(this).parent(); var children = par.children('ul'); if ( root.hasClass('ab-sadmin') ) - jQuery(children[0]).css('',par.parents('ul').width() - 1 +'px' ); + jQuery(children[0]).css('',par.parents('ul').width() - 1 +'px' ); else - jQuery(children[0]).css('',par.parents('ul').width() +'px' ); + jQuery(children[0]).css('',par.parents('ul').width() +'px' ); jQuery(children[0]).css('top', '0' ); });