Load: No-op locale.php
After re-adding `locale.php` in [39455], remove the content of the file so that it can't cause errors in the event of something loading it early in the WordPress load process. See #39027. git-svn-id: https://develop.svn.wordpress.org/trunk@39456 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7e2009642a
commit
2516ae4d4a
@ -8,20 +8,3 @@
|
||||
*/
|
||||
|
||||
_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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user