Making WordPress.org

Changeset 10830

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

Login: Append the Locale sitename to the login title.

Fixes #5662.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login
Files:
2 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
    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' );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/header.php

    r9195 r10830  
    1111<meta charset="utf-8">
    1212<meta http-equiv="x-ua-compatible" content="ie=edge">
    13 <title><?php _e( 'WordPress.org Login', 'wporg' ); ?></title>
     13<title><?php ); ?></title>
    1414<meta name="viewport" content="width=device-width, initial-scale=1">
    1515<?php wp_head(); ?>
     
    2020
    2121<div id="login">
    22     <h1><a href="https://wordpress.org/" title="WordPress.org" tabindex="-1"><?php _e( 'WordPress.org Login', 'wporg' ); ?></a></h1>
     22    <h1><a href="' ); ?></a></h1>
Note: See TracChangeset for help on using the changeset viewer.