Changeset 37889 for trunk/src/wp-includes/class-wp-locale.php
- Timestamp:
- 06/28/2016 11:52:45 AM (7 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-locale.php
r37886 r37889 1 1 <?php 2 2 /** 3 * Date and Time Locale object3 * Locale API: WP_Locale class 4 4 * 5 5 * @package WordPress 6 6 * @subpackage i18n 7 * @since 4.6.0 7 8 */ 8 9 9 10 /** 10 * C lass that loads the calendarlocale.11 * Core class used to store translated data for a locale. 11 12 * 12 13 * @since 2.1.0 14 * @since 4.6.0 Moved to its own file from wp-includes/locale.php. 13 15 */ 14 16 class WP_Locale { … … 94 96 */ 95 97 public $number_format; 98 99 /** 100 * Constructor which calls helper methods to set up object variables. 101 * 102 * @since 2.1.0 103 */ 104 public function __construct() { 105 $this->init(); 106 $this->register_globals(); 107 } 96 108 97 109 /** … … 357 369 358 370 /** 359 * Constructor which calls helper methods to set up object variables360 *361 * @since 2.1.0362 */363 public function __construct() {364 $this->init();365 $this->register_globals();366 }367 368 /**369 371 * Checks if current locale is RTL. 370 372 * … … 394 396 } 395 397 } 396 397 /**398 * Checks if current locale is RTL.399 *400 * @since 3.0.0401 *402 * @global WP_Locale $wp_locale403 *404 * @return bool Whether locale is RTL.405 */406 function is_rtl() {407 global $wp_locale;408 return $wp_locale->is_rtl();409 }
Note: See TracChangeset
for help on using the changeset viewer.