WordPress.org

Making WordPress.org

Changeset 6645


Ignore:
Timestamp:
02/15/2018 11:09:37 AM (18 months ago)
Author:
obenland
Message:

Login: Remove text direction switcher.

While it was necessary in Browse Happy, Locale Detection runs before WP_Locale gets instantiated and it's not necessary here.

Props ocean90.
See #1673.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php

    r6643 r6645  
    1919function wporg_login_setup() {
    2020    load_theme_textdomain( 'wporg' );
    21 
    22     /* translators: Enter either 'ltr' if target language is written left-to-right or 'rtl' if target language is written right-to-left. */
    23     $GLOBALS['wp_locale']->text_direction = _x( 'ltr', 'text direction', 'wporg' );
    2421}
    2522add_action( 'after_setup_theme', 'wporg_login_setup' );
Note: See TracChangeset for help on using the changeset viewer.