WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/31/2016 05:48:49 AM (3 years ago)
Author:
wonderboymusic
Message:

General: use get_bloginfo( 'version' ) instead of global $wp_version in several locations - excluding those locations which reload version.php mid-flight.

See #37699.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r38443 r38459  
    33453345 *
    33463346 * @since 3.0.0
    3347  *
    3348  * @global string $wp_version
    33493347 */
    33503348function register_admin_color_schemes() {
     
    33593357
    33603358    // Other color schemes are not available when running out of src
    3361     if ( false !== strpos( $GLOBALS['wp_version'], '-src' ) )
     3359    if ( false !== strpos( get_bloginfo( 'version' ), '-src' ) ) {
    33623360        return;
     3361    }
    33633362
    33643363    wp_admin_css_color( 'light', _x( 'Light', 'admin color scheme' ),
Note: See TracChangeset for help on using the changeset viewer.