Making WordPress.org


Ignore:
Timestamp:
03/18/2021 05:48:36 AM (4 years ago)
Author:
dd32
Message:

Login: Append the Locale sitename to the login title.

Fixes #5662.

File:
1 edited

Legend:

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

    r10674 r10830  
    285285/**
    286286 * Prints markup for a simple language switcher.
     287 *
     288 * Note: See the 'Locale Detection' plugin for the switching of the locale.
    287289 */
    288290function wporg_login_language_switcher() {
     
    404406 */
    405407function wporg_login_title() {
    406     return get_bloginfo( 'name', 'display' );
     408
     409    // Note: This does a poor job of duplicating the title from the rosetta header.
     410    //  On rosetta networks, the title is defined in the Blog title field, not from GP_Locale.
     411
     412    return
     413        ( defined( 'WPORG_SANDBOXED' ) && WPORG_SANDBOXED ? WPORG_SANDBOXED . ': ' : '' ) .
     414        __( 'WordPress.org Login', 'wporg' ) .
     415        ' | WordPress.org ' .
     416        ( wporg_login_get_locales()[ get_locale() ] ?? '' );
     417
    407418}
    408419add_filter( 'login_title', 'wporg_login_title' );
Note: See TracChangeset for help on using the changeset viewer.