diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 1a625da771..ae2fe960d1 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -14,7 +14,6 @@ function core_update_footer( $msg ) { break; case 'upgrade' : - add_action( 'admin_footer', 'update_nag' ); return sprintf( __( '| Your WordPress %s is out of date. Please update.' ), $GLOBALS['wp_version'], $cur->url ); break; @@ -28,19 +27,14 @@ add_filter( 'update_footer', 'core_update_footer' ); function update_nag() { $cur = get_option( 'update_core' ); + +if ( ! isset( $cur->response ) || $cur->response != 'upgrade' ) + return false; + ?>
Please upgrade now.'), $cur->url ); ?>
response ) || $cur->response != 'upgrade' ) - return $class; - - return "nagtime $class"; -} -add_filter( 'admin_body_class', 'update_nag_body' ); +add_action( 'admin_notices', 'update_nag', 3 ); ?> \ No newline at end of file diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 03b23519c5..67decc995e 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -1331,21 +1331,16 @@ a.view-link { } #update-nag { - width: 100%; - position: absolute; - top: 0; - left: 0; - background: #fff; - border-bottom: 2px solid #911; + border-bottom: 1px solid #ccc; + background: #fffeeb; text-align: center; - font-size: 11px; - height: 18px; + line-height: 29px; + font-size: 12px; + color: #555; } - -.nagtime { - padding-top: 15px; +#update-nag a { + font-size: 1.1em; } - -.nagtime #user_info { - top: 17px ; +#update-nag a:link { + color: #036; } \ No newline at end of file