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
This commit is contained in:
parent
3ea5731049
commit
350332019e
|
@ -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>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue