2004-04-17 05:01:10 +00:00
|
|
|
<?php
|
2008-01-10 17:28:50 +00:00
|
|
|
/**
|
2016-06-28 11:53:28 +00:00
|
|
|
* Locale API
|
2008-01-10 17:28:50 +00:00
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage i18n
|
2016-06-28 11:53:28 +00:00
|
|
|
* @since 1.2.0
|
2008-01-10 17:28:50 +00:00
|
|
|
*/
|
2006-04-02 00:20:11 +00:00
|
|
|
|
2016-06-28 11:53:28 +00:00
|
|
|
/** WP_Locale class */
|
|
|
|
require_once ABSPATH . WPINC . '/class-wp-locale.php';
|
2010-05-03 05:49:19 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Checks if current locale is RTL.
|
|
|
|
*
|
|
|
|
* @since 3.0.0
|
2015-05-26 18:59:25 +00:00
|
|
|
*
|
|
|
|
* @global WP_Locale $wp_locale
|
|
|
|
*
|
2010-05-03 05:49:19 +00:00
|
|
|
* @return bool Whether locale is RTL.
|
|
|
|
*/
|
|
|
|
function is_rtl() {
|
|
|
|
global $wp_locale;
|
|
|
|
return $wp_locale->is_rtl();
|
2005-02-06 20:45:10 +00:00
|
|
|
}
|