Make WordPress Core

Changeset 19761


Ignore:
Timestamp:
01/26/2012 09:20:19 PM (13 years ago)
Author:
nacin
Message:

Docs for WP_Locale::is_locale_rtl( $locale ). see #18180, see #19600.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/locale.php

    r19760 r19761  
    8787    /**
    8888     * Locales which are known to be right-to-left.
     89     *
     90     * @since 3.4.0
     91     * @var array
     92     * @access private
     93     * @static
    8994     */
    9095    private static $rtl_locales = array( 'ar', 'ckb', 'fa_IR', 'he_IL', 'ug_CN', 'dv', 'fa_AF', 'ha', 'ps', 'uz_UZ', 'yi' );
     
    324329        $this->register_globals();
    325330    }
     331
    326332    /**
    327333     * Checks if current locale is RTL.
     
    334340    }
    335341
     342    /**
     343     * Determines whether a locale is known to be right-to-left.
     344     *
     345     * @since 3.4.0
     346     * @static
     347     *
     348     * @param string Locale in WP format.
     349     * @return bool Whether locale is RTL.
     350     */
    336351    public static function is_locale_rtl( $locale ) {
    337352        return in_array( $locale, self::$rtl_locales );
Note: See TracChangeset for help on using the changeset viewer.