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:
Scott Taylor 2016-08-30 05:56:13 +00:00
parent 53016dd3aa
commit 003616dbd9
1 changed files with 3 additions and 0 deletions

View File

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