From 350332019e8714eb5b9d2f42fc0ae77a6a9792fd Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sat, 27 Jul 2019 14:16:59 +0000 Subject: [PATCH] I18N: Use RTL stylesheets when running from /src. To run WordPress from /src you have to use the `--dev` flag which also builds the RTL stylesheets thus the admin notice and force to LTR is no longer required. See #44492. Fixes #44865. git-svn-id: https://develop.svn.wordpress.org/trunk@45688 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-locale.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/wp-includes/class-wp-locale.php b/src/wp-includes/class-wp-locale.php index 9ddc325b35..5f54e62dec 100644 --- a/src/wp-includes/class-wp-locale.php +++ b/src/wp-includes/class-wp-locale.php @@ -222,21 +222,6 @@ class WP_Locale { } elseif ( 'rtl' == _x( 'ltr', 'text direction' ) ) { $this->text_direction = 'rtl'; } - - if ( 'rtl' === $this->text_direction && strpos( $GLOBALS['wp_version'], '-src' ) ) { - $this->text_direction = 'ltr'; - add_action( 'all_admin_notices', array( $this, 'rtl_src_admin_notice' ) ); - } - } - - /** - * Outputs an admin notice if the /build directory must be used for RTL. - * - * @since 3.8.0 - */ - public function rtl_src_admin_notice() { - /* translators: %s: Name of the directory (build) */ - echo '

' . sprintf( __( 'The %s directory of the develop repository must be used for RTL.' ), 'build' ) . '

'; } /**