Changeset 10830 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php
- Timestamp:
- 03/18/2021 05:48:36 AM (4 years ago)
- File:
-
- 1 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' );
Note: See TracChangeset
for help on using the changeset viewer.