Changeset 10830
- Timestamp:
- 03/18/2021 05:48:36 AM (4 years ago)
- 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 285 285 /** 286 286 * Prints markup for a simple language switcher. 287 * 288 * Note: See the 'Locale Detection' plugin for the switching of the locale. 287 289 */ 288 290 function wporg_login_language_switcher() { … … 404 406 */ 405 407 function 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 407 418 } 408 419 add_filter( 'login_title', 'wporg_login_title' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/header.php
r9195 r10830 11 11 <meta charset="utf-8"> 12 12 <meta http-equiv="x-ua-compatible" content="ie=edge"> 13 <title><?php _e( 'WordPress.org Login', 'wporg'); ?></title>13 <title><?php echo wporg_login_title(); ?></title> 14 14 <meta name="viewport" content="width=device-width, initial-scale=1"> 15 15 <?php wp_head(); ?> … … 20 20 21 21 <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="<?php /* This mimicks the wp-login.php header */ echo apply_filters( 'login_headerurl', __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php /* This mimicks the wp-login.php header */ _e( 'Powered by WordPress' ); ?></a></h1>
Note: See TracChangeset
for help on using the changeset viewer.