Changeset 5904
- Timestamp:
- 08/20/2007 07:01:15 AM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update.php
r5892 r5904 15 15 16 16 case 'upgrade' : 17 add_action( 'admin_footer', 'update_nag' );18 17 return sprintf( __( '| <strong>Your WordPress %s is out of date. <a href="%s">Please update</a>.</strong>' ), $GLOBALS['wp_version'], $cur->url ); 19 18 break; … … 29 28 function update_nag() { 30 29 $cur = get_option( 'update_core' ); 30 31 if ( ! isset( $cur->response ) || $cur->response != 'upgrade' ) 32 return false; 33 31 34 ?> 32 35 <div id="update-nag"><?php printf( __('Update Available! <a href="%s">Please upgrade now</a>.'), $cur->url ); ?></div> 33 36 <?php 34 37 } 35 36 function update_nag_body( $class ) { 37 $cur = get_option( 'update_core' ); 38 39 if ( ! isset( $cur->response ) || $cur->response != 'upgrade' ) 40 return $class; 41 42 return "nagtime $class"; 43 } 44 add_filter( 'admin_body_class', 'update_nag_body' ); 38 add_action( 'admin_notices', 'update_nag', 3 ); 45 39 46 40 ?> -
trunk/wp-admin/wp-admin.css
r5892 r5904 1332 1332 1333 1333 #update-nag { 1334 width: 100%; 1335 position: absolute; 1336 top: 0; 1337 left: 0; 1338 background: #fff; 1339 border-bottom: 2px solid #911; 1334 border-bottom: 1px solid #ccc; 1335 background: #fffeeb; 1340 1336 text-align: center; 1341 font-size: 11px; 1342 height: 18px; 1343 } 1344 1345 .nagtime { 1346 padding-top: 15px; 1347 } 1348 1349 .nagtime #user_info { 1350 top: 17px ; 1351 } 1337 line-height: 29px; 1338 font-size: 12px; 1339 color: #555; 1340 } 1341 #update-nag a { 1342 font-size: 1.1em; 1343 } 1344 #update-nag a:link { 1345 color: #036; 1346 }
Note: See TracChangeset
for help on using the changeset viewer.