i18n: after r38364, check that global $wp_locale
is an instance of WP_Locale
before calling ->is_rtle()
in is_rtl()
.
See #37827. git-svn-id: https://develop.svn.wordpress.org/trunk@38438 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
53016dd3aa
commit
003616dbd9
@ -1144,5 +1144,8 @@ function wp_dropdown_languages( $args = array() ) {
|
||||
*/
|
||||
function is_rtl() {
|
||||
global $wp_locale;
|
||||
if ( ! ( $wp_locale instanceof WP_Locale ) ) {
|
||||
return false;
|
||||
}
|
||||
return $wp_locale->is_rtl();
|
||||
}
|
Loading…
Reference in New Issue
Block a user