Making WordPress.org

Changeset 9214


Ignore:
Timestamp:
10/21/2019 03:15:34 AM (7 years ago)
Author:
dd32
Message:

Support Forums: Use the Rosetta Site Name instead of just 'WordPress.org' on locale forums.

See #4680.

File:
1 edited

Legend:

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

    r9063 r9214  
    188188 */
    189189function wporg_get_global_header() {
    190         $GLOBALS['pagetitle'] = wp_title( '|', false, 'right' ) . __( 'WordPress.org', 'wporg-forums' );
     190
     191        $GLOBALS['pagetitle'] = wp_title( '|', false, 'right' );
     192        // Suffix either "WordPress.org $LOCALE" or WordPress.org.
     193        if ( isset( $GLOBALS['wporg_global_header_options']['rosetta_title'] ) ) {
     194                $GLOBALS['pagetitle'] .= $GLOBALS['wporg_global_header_options']['rosetta_title'];
     195        } else {
     196                $GLOBALS['pagetitle'] .= __( 'WordPress.org', 'wporg-forums' );
     197        }
     198
    191199        require WPORGPATH . 'header.php';
    192200}
Note: See TracChangeset for help on using the changeset viewer.