Changeset 21986 for trunk/wp-admin/includes/update.php
- Timestamp:
- 09/24/2012 09:27:28 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update.php
r21815 r21986 84 84 function core_update_footer( $msg = '' ) { 85 85 if ( !current_user_can('update_core') ) 86 return sprintf( __( 'Version %s' ), $GLOBALS['wp_version']);86 return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) ); 87 87 88 88 $cur = get_preferred_from_update_core(); … … 101 101 switch ( $cur->response ) { 102 102 case 'development' : 103 return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), $GLOBALS['wp_version'], network_admin_url( 'update-core.php' ) );103 return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ) ); 104 104 break; 105 105 … … 110 110 case 'latest' : 111 111 default : 112 return sprintf( __( 'Version %s' ), $GLOBALS['wp_version']);112 return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) ); 113 113 break; 114 114 } … … 141 141 // Called directly from dashboard 142 142 function update_right_now_message() { 143 $msg = sprintf( __( 'You are using <span class="b">WordPress %s</span>.'), $GLOBALS['wp_version']);143 $msg = sprintf( __( 'You are using <span class="b">WordPress %s</span>.' ), get_bloginfo( 'version', 'display' ) ); 144 144 145 145 if ( current_user_can('update_core') ) {
Note: See TracChangeset
for help on using the changeset viewer.