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