mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
i18n: after r38364, check that global $wp_locale
is an instance of WP_Locale
before calling ->is_rtle()
in is_rtl()
.
See #37827. Built from https://develop.svn.wordpress.org/trunk@38438 git-svn-id: http://core.svn.wordpress.org/trunk@38379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d793020f1e
commit
3f51e08ac6
@ -1144,5 +1144,8 @@ function wp_dropdown_languages( $args = array() ) {
|
|||||||
*/
|
*/
|
||||||
function is_rtl() {
|
function is_rtl() {
|
||||||
global $wp_locale;
|
global $wp_locale;
|
||||||
|
if ( ! ( $wp_locale instanceof WP_Locale ) ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return $wp_locale->is_rtl();
|
return $wp_locale->is_rtl();
|
||||||
}
|
}
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7-alpha-38437';
|
$wp_version = '4.7-alpha-38438';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user