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