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.
Built from https://develop.svn.wordpress.org/trunk@45688


git-svn-id: http://core.svn.wordpress.org/trunk@45499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2019-07-27 14:17:57 +00:00
parent 4d3ca52c45
commit 892a80d974
2 changed files with 1 additions and 16 deletions

View File

@ -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 '<div class="error"><p>' . sprintf( __( 'The %s directory of the develop repository must be used for RTL.' ), '<code>build</code>' ) . '</p></div>';
}
/**

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.3-alpha-45687';
$wp_version = '5.3-alpha-45688';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.