Make WordPress Core

Changeset 38438


Ignore:
Timestamp:
08/30/2016 05:56:13 AM (9 years ago)
Author:
wonderboymusic
Message:

i18n: after r38364, check that global $wp_locale is an instance of WP_Locale before calling ->is_rtle() in is_rtl().

See #37827.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/l10n.php

    r38364 r38438  
    11451145function is_rtl() {
    11461146    global $wp_locale;
     1147    if ( ! ( $wp_locale instanceof WP_Locale ) ) {
     1148        return false;
     1149    }
    11471150    return $wp_locale->is_rtl();
    11481151}
Note: See TracChangeset for help on using the changeset viewer.