WordPress.org

Make WordPress Core

Ticket #19600: 19600.patch

File 19600.patch, 484 bytes (added by SergeyBiryukov, 6 years ago)
  • wp-includes/locale.php

     
    333333         * @return bool Whether locale is RTL.
    334334         */
    335335         function is_rtl() {
    336                 return 'rtl' == $this->text_direction;
     336                $rtl_locales = array( 'ar', 'ckb', 'fa_IR', 'he_IL', 'ug_CN' );
     337                return in_array( get_locale(), $rtl_locales ) || 'rtl' == $this->text_direction;
    337338         }
    338339}
    339340