Changeset 19760 for trunk/wp-includes/locale.php
- Timestamp:
- 01/26/2012 08:34:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/locale.php
r19755 r19760 88 88 * Locales which are known to be right-to-left. 89 89 */ 90 private $rtl_locales = array( 'ar', 'ckb', 'fa_IR', 'he_IL', 'ug_CN', 'dv', 'fa_AF', 'ha', 'ps', 'uz_UZ', 'yi' );90 private static $rtl_locales = array( 'ar', 'ckb', 'fa_IR', 'he_IL', 'ug_CN', 'dv', 'fa_AF', 'ha', 'ps', 'uz_UZ', 'yi' ); 91 91 92 92 /** … … 184 184 185 185 // Locale-specific tweaks 186 if ( in_array( get_locale(), $this->rtl_locales) )186 if ( self::is_locale_rtl( get_locale() ) ) 187 187 $this->text_direction = 'rtl'; 188 188 … … 334 334 } 335 335 336 public static function is_locale_rtl( $locale ) { 337 return in_array( $locale, self::$rtl_locales ); 338 } 336 339 } 337 340
Note: See TracChangeset
for help on using the changeset viewer.