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:
Scott Taylor 2016-08-30 05:57:41 +00:00
parent d793020f1e
commit 3f51e08ac6
2 changed files with 4 additions and 1 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();
}

View File

@ -4,7 +4,7 @@
*
* @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.