Making WordPress.org


Ignore:
Timestamp:
03/29/2018 04:39:13 PM (6 years ago)
Author:
ocean90
Message:

Main: About: Use the actual page title for translatable page titles.

Adds context to all page titles. Reverts parts of [6969].

See #3046.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-domains.php

    r6950 r6972  
    1111
    1212$GLOBALS['menu_items'] = [
    13     'about/domains'       => __( 'Domains', 'wporg' ),
    14     'about/license'       => __( 'GNU Public License', 'wporg' ),
    15     'about/accessibility' => __( 'Accessibility', 'wporg' ),
    16     'about/privacy'       => __( 'Privacy Policy', 'wporg' ),
    17     'about/stats'         => __( 'Statistics', 'wporg' ),
     13    'about/domains'       => _x( 'Domains', 'Page title', 'wporg' ),
     14    'about/license'       => _x( 'GNU Public License', 'Page title', 'wporg' ),
     15    'about/accessibility' => _x( 'Accessibility', 'Page title', 'wporg' ),
     16    'about/privacy'       => _x( 'Privacy Policy', 'Page title', 'wporg' ),
     17    'about/stats'         => _x( 'Statistics', 'Page title', 'wporg' ),
    1818];
    1919
     
    3333        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    3434            <header class="entry-header">
    35                 <h1 class="entry-title col-8"><?php esc_html_e( 'Domains', 'wporg' ); ?></h1>
     35                <h1 class="entry-title col-8"><?php the_title(); ?></h1>
    3636            </header><!-- .entry-header -->
    3737
Note: See TracChangeset for help on using the changeset viewer.