Changeset 19761
- Timestamp:
- 01/26/2012 09:20:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/locale.php
r19760 r19761 87 87 /** 88 88 * Locales which are known to be right-to-left. 89 * 90 * @since 3.4.0 91 * @var array 92 * @access private 93 * @static 89 94 */ 90 95 private static $rtl_locales = array( 'ar', 'ckb', 'fa_IR', 'he_IL', 'ug_CN', 'dv', 'fa_AF', 'ha', 'ps', 'uz_UZ', 'yi' ); … … 324 329 $this->register_globals(); 325 330 } 331 326 332 /** 327 333 * Checks if current locale is RTL. … … 334 340 } 335 341 342 /** 343 * Determines whether a locale is known to be right-to-left. 344 * 345 * @since 3.4.0 346 * @static 347 * 348 * @param string Locale in WP format. 349 * @return bool Whether locale is RTL. 350 */ 336 351 public static function is_locale_rtl( $locale ) { 337 352 return in_array( $locale, self::$rtl_locales );
Note: See TracChangeset
for help on using the changeset viewer.