Changeset 19754 for trunk/wp-includes/locale.php
- Timestamp:
- 01/25/2012 10:29:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/locale.php
r19712 r19754 84 84 */ 85 85 var $text_direction = 'ltr'; 86 87 /**88 * Imports the global version to the class property.89 *90 * @since 2.1.091 * @var array92 * @access private93 */94 var $locale_vars = array('text_direction');95 86 96 87 /** … … 187 178 $this->number_format['decimal_point'] = ('number_format_decimal_point' == $trans) ? '.' : $trans; 188 179 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']; 194 183 195 184 }
Note: See TracChangeset
for help on using the changeset viewer.