mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Bootstrap/Load: Restore $wp_version
global check in WP_Locale::init()
, previously replaced with get_bloginfo( 'version' )
in [38459].
`wp_load_translations_early()` can be called in contexts where `get_bloginfo()` is not available yet, e.g. in `wp_check_php_mysql_versions()`. Props shazdeh, parsmizban. Fixes #41092. Built from https://develop.svn.wordpress.org/trunk@45029 git-svn-id: http://core.svn.wordpress.org/trunk@44838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d4d906c4d5
commit
577dc2326a
@ -115,6 +115,7 @@ class WP_Locale {
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @global string $text_direction
|
||||
* @global string $wp_version
|
||||
*/
|
||||
public function init() {
|
||||
// The Weekdays
|
||||
@ -222,7 +223,7 @@ class WP_Locale {
|
||||
$this->text_direction = 'rtl';
|
||||
}
|
||||
|
||||
if ( 'rtl' === $this->text_direction && strpos( get_bloginfo( 'version' ), '-src' ) ) {
|
||||
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' ) );
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.2-alpha-45028';
|
||||
$wp_version = '5.2-alpha-45029';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user