Changeset 5904 for trunk/wp-admin/includes/update.php
- Timestamp:
- 08/20/2007 07:01:15 AM (18 years ago)
- File:
-
- 1 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 ?>
Note: See TracChangeset
for help on using the changeset viewer.