From 168fff86781e8968e05c798fcb6f7c3ff8cadea4 Mon Sep 17 00:00:00 2001 From: dd32 Date: Mon, 4 Oct 2010 04:11:34 +0000 Subject: [PATCH] Do not show admin bar in update iframes. See #14772 git-svn-id: http://svn.automattic.com/wordpress/trunk@15695 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/admin-bar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index ede4bf6c2c..f6ee71e710 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -16,7 +16,7 @@ function wp_admin_bar_init() { if ( is_ssl() ) define( 'PROTO', 'https://' ); else define( 'PROTO', 'http://' ); /* Don't load the admin bar if the user is not logged in, or we are using press this */ - if ( !is_user_logged_in() || 'press-this.php' == $pagenow ) + if ( !is_user_logged_in() || 'press-this.php' == $pagenow || 'update.php' == $pagenow ) return false; /* Set up the settings we need to render menu items */ @@ -232,7 +232,7 @@ function wp_admin_bar_css() { if ( !is_user_logged_in() ) return false; - if ( 'press-this.php' == $pagenow ) + if ( 'press-this.php' == $pagenow || 'update.php' == $pagenow ) return; $nobump = false;