WordPress.org

Make WordPress Core

Changeset 19754


Ignore:
Timestamp:
01/25/12 22:29:33 (2 years ago)
Author:
nacin
Message:

Remove locale_vars from WP_Locale. Explicitly set the text_direction property from a global, not from an arbitrary list. see #19600.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/locale.php

    r19712 r19754  
    8484     */ 
    8585    var $text_direction = 'ltr'; 
    86  
    87     /** 
    88      * Imports the global version to the class property. 
    89      * 
    90      * @since 2.1.0 
    91      * @var array 
    92      * @access private 
    93      */ 
    94     var $locale_vars = array('text_direction'); 
    9586 
    9687    /** 
     
    187178        $this->number_format['decimal_point'] = ('number_format_decimal_point' == $trans) ? '.' : $trans; 
    188179 
    189         // Import global locale vars set during inclusion of $locale.php. 
    190         foreach ( (array) $this->locale_vars as $var ) { 
    191             if ( isset($GLOBALS[$var]) ) 
    192                 $this->$var = $GLOBALS[$var]; 
    193         } 
     180        // Import the $text_direction global. 
     181        if ( isset( $GLOBALS['text_direction'] ) ) 
     182            $this->text_direction = $GLOBALS['text_direction']; 
    194183 
    195184    } 
Note: See TracChangeset for help on using the changeset viewer.