From 2516ae4d4a57ff25243807a908d5755b96240f11 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Sat, 3 Dec 2016 04:15:33 +0000 Subject: [PATCH] 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 --- src/wp-includes/locale.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/wp-includes/locale.php b/src/wp-includes/locale.php index b30d1fdf42..6a459e3e34 100644 --- a/src/wp-includes/locale.php +++ b/src/wp-includes/locale.php @@ -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(); -}