WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/24/12 21:27:28 (19 months ago)
Author:
nacin
Message:

Use get_bloginfo('version', 'display') for displaying the WP version number in the admin. Can allow for filtering -- for example, showing the SVN revision. props SergeyBiryukov, see #18629.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/update.php

    r21815 r21986  
    8484function core_update_footer( $msg = '' ) { 
    8585    if ( !current_user_can('update_core') ) 
    86         return sprintf( __( 'Version %s' ), $GLOBALS['wp_version'] ); 
     86        return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) ); 
    8787 
    8888    $cur = get_preferred_from_update_core(); 
     
    101101    switch ( $cur->response ) { 
    102102    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' ) ); 
    104104    break; 
    105105 
     
    110110    case 'latest' : 
    111111    default : 
    112         return sprintf( __( 'Version %s' ), $GLOBALS['wp_version'] ); 
     112        return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) ); 
    113113    break; 
    114114    } 
     
    141141// Called directly from dashboard 
    142142function 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' ) ); 
    144144 
    145145    if ( current_user_can('update_core') ) { 
Note: See TracChangeset for help on using the changeset viewer.