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
This commit is contained in:
parent
57f3dab19d
commit
c20a7fc441
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user