mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user