Do not show admin bar in update iframes. See #14772

git-svn-id: https://develop.svn.wordpress.org/trunk@15695 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-10-04 04:11:34 +00:00
parent 7feec6e344
commit 57f3dab19d
1 changed files with 2 additions and 2 deletions

View File

@ -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;