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/class-wp-locale.php

    r38316 r38459  
    126126     *
    127127     * @global string $text_direction
    128      * @global string $wp_version
    129128     */
    130129    public function init() {
     
    232231            $this->text_direction = 'rtl';
    233232
    234         if ( 'rtl' === $this->text_direction && strpos( $GLOBALS['wp_version'], '-src' ) ) {
     233        if ( 'rtl' === $this->text_direction && strpos( get_bloginfo( 'version' ), '-src' ) ) {
    235234            $this->text_direction = 'ltr';
    236235            add_action( 'all_admin_notices', array( $this, 'rtl_src_admin_notice' ) );
Note: See TracChangeset for help on using the changeset viewer.