mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
623ba7e8c9
`locale.php` is occasionally included directly by custom external code, so should continue to be available. This behaviour is deprecated. Partial revert of [38364]. See #37827, #39027. Built from https://develop.svn.wordpress.org/trunk@39455 git-svn-id: http://core.svn.wordpress.org/trunk@39395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
28 lines
433 B
PHP
28 lines
433 B
PHP
<?php
|
|
/**
|
|
* Locale API
|
|
*
|
|
* @package WordPress
|
|
* @subpackage i18n
|
|
* @since 1.2.0
|
|
*/
|
|
|
|
_deprecated_file( basename( __FILE__ ), '4.7.0' );
|
|
|
|
/** WP_Locale class */
|
|
require_once ABSPATH . WPINC . '/class-wp-locale.php';
|
|
|
|
/**
|
|
* Checks if current locale is RTL.
|
|
*
|
|
* @since 3.0.0
|
|
*
|
|
* @global WP_Locale $wp_locale
|
|
*
|
|
* @return bool Whether locale is RTL.
|
|
*/
|
|
function is_rtl() {
|
|
global $wp_locale;
|
|
return $wp_locale->is_rtl();
|
|
}
|