X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/42aebe6945a3a60c8f73853bea2c8b202d64a20b..256a3b381f63716209b3527d0a14442ae570c283:/wp-includes/locale.php diff --git a/wp-includes/locale.php b/wp-includes/locale.php index 244d08a6..0def2765 100644 --- a/wp-includes/locale.php +++ b/wp-includes/locale.php @@ -183,6 +183,15 @@ class WP_Locale { /* translators: 'rtl' or 'ltr'. This sets the text direction for WordPress. */ 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' ) ); + } + } + + function rtl_src_admin_notice() { + echo '
' . 'The build
directory of the develop repository must be used for RTL.' . '