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

git-svn-id: http://svn.automattic.com/wordpress/trunk@19754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-01-25 22:29:33 +00:00
parent 8361ce4be1
commit c06c813b46
1 changed files with 3 additions and 14 deletions

View File

@ -84,15 +84,6 @@ class WP_Locale {
*/
var $text_direction = 'ltr';
/**
* Imports the global version to the class property.
*
* @since 2.1.0
* @var array
* @access private
*/
var $locale_vars = array('text_direction');
/**
* Sets up the translated strings and object properties.
*
@ -186,11 +177,9 @@ class WP_Locale {
$trans = __('number_format_decimal_point');
$this->number_format['decimal_point'] = ('number_format_decimal_point' == $trans) ? '.' : $trans;
// Import global locale vars set during inclusion of $locale.php.
foreach ( (array) $this->locale_vars as $var ) {
if ( isset($GLOBALS[$var]) )
$this->$var = $GLOBALS[$var];
}
// Import the $text_direction global.
if ( isset( $GLOBALS['text_direction'] ) )
$this->text_direction = $GLOBALS['text_direction'];
}