Update WordPress to 5.2

This commit is contained in:
Oliver Davies 2019-05-08 08:05:39 +01:00
parent 489b5a5914
commit e00f87f2f5
599 changed files with 119573 additions and 55990 deletions

View file

@ -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' ) );
}