Making WordPress.org

Changeset 6972


Ignore:
Timestamp:
03/29/2018 04:39:13 PM (7 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.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main
Files:
17 edited

Legend:

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

    r6970 r6972  
    1313 * This is also defined here to allow it to be used on pages where the page template is not included for that page, such as the embed template.
    1414 *
    15  * @param array       $tags Optional. Open Graph tags.
    16  * @param WP_Post|int $post Optional. Post object or ID.
     15 * @param array $tags Optional. Open Graph tags.
    1716 * @return array Filtered Open Graph tags.
    1817 */
    19 function custom_open_graph_tags( $tags = [], $post = null ) {
     18function custom_open_graph_tags( $tags = [] ) {
    2019    $post = get_post( $post );
    2120    if ( ! $post || 'page' !== $post->post_type ) {
     
    122121
    123122/**
    124  * Maps page titles to Open Graph data which are translatable strings.
     123 * Maps page titles to translatable strings.
    125124 *
    126125 * @param string      $title The post title.
     
    133132    }
    134133
    135     $tags = custom_open_graph_tags( [], $post );
    136     return $tags['og:title'] ?? $title;
     134    $post = get_post( $post );
     135    if ( ! $post || 'page' !== $post->post_type ) {
     136        return $title;
     137    }
     138
     139    switch ( $post->page_template ) {
     140        case 'page-about-domains.php':
     141            $title = esc_html_x( 'Domains', 'Page title', 'wporg' );
     142            break;
     143
     144        case 'page-about-accessibility.php':
     145            $title = esc_html_x( 'Accessibility', 'Page title', 'wporg' );
     146            break;
     147
     148        case 'page-about-etiquette.php':
     149            $title = esc_html_x( 'Etiquette', 'Page title', 'wporg' );
     150            break;
     151
     152        case 'page-about-features.php':
     153            $title = esc_html_x( 'Features', 'Page title', 'wporg' );
     154            break;
     155
     156        case 'page-about-history.php':
     157            $title = esc_html_x( 'History', 'Page title', 'wporg' );
     158            break;
     159
     160        case 'page-about-license.php':
     161            $title = esc_html_x( 'GNU Public License', 'Page title', 'wporg' );
     162            break;
     163
     164        case 'page-about-logos.php':
     165            $title = esc_html_x( 'Graphics & Logos', 'Page title', 'wporg' );
     166            break;
     167
     168        case 'page-about-philosophy.php':
     169            $title = esc_html_x( 'Philosophy', 'Page title', 'wporg' );
     170            break;
     171
     172        case 'page-about-privacy.php':
     173            $title = esc_html_x( 'Privacy Policy', 'Page title', 'wporg' );
     174            break;
     175
     176        case 'page-about-requirements.php':
     177            $title = esc_html_x( 'Requirements', 'Page title', 'wporg' );
     178            break;
     179
     180        case 'page-about-roadmap.php':
     181            $title = esc_html_x( 'Roadmap', 'Page title', 'wporg' );
     182            break;
     183
     184        case 'page-about-security.php':
     185            $title = esc_html_x( 'About', 'Page title', 'wporg' );
     186            break;
     187
     188        case 'page-about-stats.php':
     189            $title = esc_html_x( 'Statistics', 'Page title', 'wporg' );
     190            break;
     191
     192        case 'page-about-swag.php':
     193            $title = esc_html_x( 'Swag', 'Page title', 'wporg' );
     194            break;
     195
     196        case 'page-about-testimonials.php':
     197            $title = esc_html_x( 'Testimonials', 'Page title', 'wporg' );
     198            break;
     199
     200        case 'page-about.php':
     201            $title = esc_html_x( 'About', 'Page title', 'wporg' );
     202            break;
     203    }
     204
     205    return $title;
    137206}
    138207add_filter( 'the_title', __NAMESPACE__ . '\custom_page_title', 10, 2 );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-accessibility.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( 'Accessibility', 'wporg' ); ?></h1>
     35                <h1 class="entry-title col-8"><?php the_title(); ?></h1>
    3636            </header><!-- .entry-header -->
    3737
  • 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
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-etiquette.php

    r6950 r6972  
    1111
    1212$GLOBALS['menu_items'] = [
    13     'about/philosophy'   => __( 'Philosophy', 'wporg' ),
    14     'about/etiquette'    => __( 'Etiquette', 'wporg' ),
    15     'about/swag'         => __( 'Swag', 'wporg' ),
    16     'about/logos'        => __( 'Graphics &amp; Logos', 'wporg' ),
    17     'about/testimonials' => __( 'Testimonials', 'wporg' ),
     13    'about/philosophy'   => _x( 'Philosophy', 'Page title', 'wporg' ),
     14    'about/etiquette'    => _x( 'Etiquette', 'Page title', 'wporg' ),
     15    'about/swag'         => _x( 'Swag', 'Page title', 'wporg' ),
     16    'about/logos'        => _x( 'Graphics &amp; Logos', 'Page title', 'wporg' ),
     17    'about/testimonials' => _x( 'Testimonials', '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( 'Etiquette', 'wporg' ); ?></h1>
     35                <h1 class="entry-title col-8"><?php the_title(); ?></h1>
    3636            </header><!-- .entry-header -->
    3737
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-features.php

    r6950 r6972  
    1111
    1212$GLOBALS['menu_items'] = [
    13     'about/requirements' => __( 'Requirements', 'wporg' ),
    14     'about/features'     => __( 'Features', 'wporg' ),
    15     'about/security'     => __( 'Security', 'wporg' ),
    16     'about/roadmap'      => __( 'Roadmap', 'wporg' ),
    17     'about/history'      => __( 'History', 'wporg' ),
     13    'about/requirements' => _x( 'Requirements', 'Page title', 'wporg' ),
     14    'about/features'     => _x( 'Features', 'Page title', 'wporg' ),
     15    'about/security'     => _x( 'Security', 'Page title', 'wporg' ),
     16    'about/roadmap'      => _x( 'Roadmap', 'Page title', 'wporg' ),
     17    'about/history'      => _x( 'History', '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( 'Features', 'wporg' ); ?></h1>
     35                <h1 class="entry-title col-8"><?php the_title(); ?></h1>
    3636            </header><!-- .entry-header -->
    3737
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-history.php

    r6950 r6972  
    1111
    1212$GLOBALS['menu_items'] = [
    13     'about/requirements' => __( 'Requirements', 'wporg' ),
    14     'about/features'     => __( 'Features', 'wporg' ),
    15     'about/security'     => __( 'Security', 'wporg' ),
    16     'about/roadmap'      => __( 'Roadmap', 'wporg' ),
    17     'about/history'      => __( 'History', 'wporg' ),
     13    'about/requirements' => _x( 'Requirements', 'Page title', 'wporg' ),
     14    'about/features'     => _x( 'Features', 'Page title', 'wporg' ),
     15    'about/security'     => _x( 'Security', 'Page title', 'wporg' ),
     16    'about/roadmap'      => _x( 'Roadmap', 'Page title', 'wporg' ),
     17    'about/history'      => _x( 'History', '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( 'History', 'wporg' ); ?></h1>
     35                <h1 class="entry-title col-8"><?php the_title(); ?></h1>
    3636            </header><!-- .entry-header -->
    3737
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-license.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 row">
    35                 <h1 class="entry-title col-8"><?php esc_html_e( 'GNU Public License', 'wporg' ); ?></h1>
     35                <h1 class="entry-title col-8"><?php the_title(); ?></h1>
    3636            </header><!-- .entry-header -->
    3737
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-logos.php

    r6950 r6972  
    1111
    1212$GLOBALS['menu_items'] = [
    13     'about/philosophy'   => __( 'Philosophy', 'wporg' ),
    14     'about/etiquette'    => __( 'Etiquette', 'wporg' ),
    15     'about/swag'         => __( 'Swag', 'wporg' ),
    16     'about/logos'        => __( 'Graphics &amp; Logos', 'wporg' ),
    17     'about/testimonials' => __( 'Testimonials', 'wporg' ),
     13    'about/philosophy'   => _x( 'Philosophy', 'Page title', 'wporg' ),
     14    'about/etiquette'    => _x( 'Etiquette', 'Page title', 'wporg' ),
     15    'about/swag'         => _x( 'Swag', 'Page title', 'wporg' ),
     16    'about/logos'        => _x( 'Graphics &amp; Logos', 'Page title', 'wporg' ),
     17    'about/testimonials' => _x( 'Testimonials', '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( 'Graphics &amp; Logos', 'wporg' ); ?></h1>
     35                <h1 class="entry-title col-8"><?php the_title(); ?></h1>
    3636            </header><!-- .entry-header -->
    3737
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-philosophy.php

    r6950 r6972  
    1111
    1212$GLOBALS['menu_items'] = [
    13     'about/philosophy'   => __( 'Philosophy', 'wporg' ),
    14     'about/etiquette'    => __( 'Etiquette', 'wporg' ),
    15     'about/swag'         => __( 'Swag', 'wporg' ),
    16     'about/logos'        => __( 'Graphics &amp; Logos', 'wporg' ),
    17     'about/testimonials' => __( 'Testimonials', 'wporg' ),
     13    'about/philosophy'   => _x( 'Philosophy', 'Page title', 'wporg' ),
     14    'about/etiquette'    => _x( 'Etiquette', 'Page title', 'wporg' ),
     15    'about/swag'         => _x( 'Swag', 'Page title', 'wporg' ),
     16    'about/logos'        => _x( 'Graphics &amp; Logos', 'Page title', 'wporg' ),
     17    'about/testimonials' => _x( 'Testimonials', '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( 'Philosophy', 'wporg' ); ?></h1>
     35                <h1 class="entry-title col-8"><?php the_title(); ?></h1>
    3636            </header><!-- .entry-header -->
    3737
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy.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( 'Privacy', 'wporg' ); ?></h1>
     35                <h1 class="entry-title col-8"><?php the_title(); ?></h1>
    3636            </header><!-- .entry-header -->
    3737
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-requirements.php

    r6950 r6972  
    1111
    1212$GLOBALS['menu_items'] = [
    13     'about/requirements' => __( 'Requirements', 'wporg' ),
    14     'about/features'     => __( 'Features', 'wporg' ),
    15     'about/security'     => __( 'Security', 'wporg' ),
    16     'about/roadmap'      => __( 'Roadmap', 'wporg' ),
    17     'about/history'      => __( 'History', 'wporg' ),
     13    'about/requirements' => _x( 'Requirements', 'Page title', 'wporg' ),
     14    'about/features'     => _x( 'Features', 'Page title', 'wporg' ),
     15    'about/security'     => _x( 'Security', 'Page title', 'wporg' ),
     16    'about/roadmap'      => _x( 'Roadmap', 'Page title', 'wporg' ),
     17    'about/history'      => _x( 'History', '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( 'Requirements', 'wporg' ); ?></h1>
     35                <h1 class="entry-title col-8"><?php the_title(); ?></h1>
    3636            </header><!-- .entry-header -->
    3737
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-roadmap.php

    r6950 r6972  
    1111
    1212$GLOBALS['menu_items'] = [
    13     'about/requirements' => __( 'Requirements', 'wporg' ),
    14     'about/features'     => __( 'Features', 'wporg' ),
    15     'about/security'     => __( 'Security', 'wporg' ),
    16     'about/roadmap'      => __( 'Roadmap', 'wporg' ),
    17     'about/history'      => __( 'History', 'wporg' ),
     13    'about/requirements' => _x( 'Requirements', 'Page title', 'wporg' ),
     14    'about/features'     => _x( 'Features', 'Page title', 'wporg' ),
     15    'about/security'     => _x( 'Security', 'Page title', 'wporg' ),
     16    'about/roadmap'      => _x( 'Roadmap', 'Page title', 'wporg' ),
     17    'about/history'      => _x( 'History', 'Page title', 'wporg' ),
    1818];
    1919
     
    3535        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    3636            <header class="entry-header">
    37                 <h1 class="entry-title col-8"><?php esc_html_e( 'Roadmap', 'wporg' ); ?></h1>
     37                <h1 class="entry-title col-8"><?php the_title(); ?></h1>
    3838            </header><!-- .entry-header -->
    3939
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-security.php

    r6950 r6972  
    1111
    1212$GLOBALS['menu_items'] = [
    13     'about/requirements' => __( 'Requirements', 'wporg' ),
    14     'about/features'     => __( 'Features', 'wporg' ),
    15     'about/security'     => __( 'Security', 'wporg' ),
    16     'about/roadmap'      => __( 'Roadmap', 'wporg' ),
    17     'about/history'      => __( 'History', 'wporg' ),
     13    'about/requirements' => _x( 'Requirements', 'Page title', 'wporg' ),
     14    'about/features'     => _x( 'Features', 'Page title', 'wporg' ),
     15    'about/security'     => _x( 'Security', 'Page title', 'wporg' ),
     16    'about/roadmap'      => _x( 'Roadmap', 'Page title', 'wporg' ),
     17    'about/history'      => _x( 'History', 'Page title', 'wporg' ),
    1818];
    1919
     
    3838        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    3939            <header class="entry-header">
    40                 <h1 class="entry-title col-8"><?php esc_html_e( 'Security', 'wporg' ); ?></h1>
     40                <h1 class="entry-title col-8"><?php the_title(); ?></h1>
    4141            </header><!-- .entry-header -->
    4242
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-stats.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 row">
    35                 <h1 class="entry-title col-8"><?php esc_html_e( 'Statistics', 'wporg' ); ?></h1>
     35                <h1 class="entry-title col-8"><?php the_title(); ?></h1>
    3636            </header><!-- .entry-header -->
    3737
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-swag.php

    r6950 r6972  
    1111
    1212$GLOBALS['menu_items'] = [
    13     'about/philosophy'   => __( 'Philosophy', 'wporg' ),
    14     'about/etiquette'    => __( 'Etiquette', 'wporg' ),
    15     'about/swag'         => __( 'Swag', 'wporg' ),
    16     'about/logos'        => __( 'Graphics &amp; Logos', 'wporg' ),
    17     'about/testimonials' => __( 'Testimonials', 'wporg' ),
     13    'about/philosophy'   => _x( 'Philosophy', 'Page title', 'wporg' ),
     14    'about/etiquette'    => _x( 'Etiquette', 'Page title', 'wporg' ),
     15    'about/swag'         => _x( 'Swag', 'Page title', 'wporg' ),
     16    'about/logos'        => _x( 'Graphics &amp; Logos', 'Page title', 'wporg' ),
     17    'about/testimonials' => _x( 'Testimonials', '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( 'Swag', 'wporg' ); ?></h1>
     35                <h1 class="entry-title col-8"><?php the_title(); ?></h1>
    3636            </header><!-- .entry-header -->
    3737
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-testimonials.php

    r6971 r6972  
    1111
    1212$GLOBALS['menu_items'] = [
    13     'about/philosophy'   => __( 'Philosophy', 'wporg' ),
    14     'about/etiquette'    => __( 'Etiquette', 'wporg' ),
    15     'about/swag'         => __( 'Swag', 'wporg' ),
    16     'about/logos'        => __( 'Graphics &amp; Logos', 'wporg' ),
    17     'about/testimonials' => __( 'Testimonials', 'wporg' ),
     13    'about/philosophy'   => _x( 'Philosophy', 'Page title', 'wporg' ),
     14    'about/etiquette'    => _x( 'Etiquette', 'Page title', 'wporg' ),
     15    'about/swag'         => _x( 'Swag', 'Page title', 'wporg' ),
     16    'about/logos'        => _x( 'Graphics &amp; Logos', 'Page title', 'wporg' ),
     17    'about/testimonials' => _x( 'Testimonials', 'Page title', 'wporg' ),
    1818];
    1919
     
    103103        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    104104            <header class="entry-header">
    105                 <h1 class="entry-title col-8"><?php esc_html_e( 'Testimonials', 'wporg' ); ?></h1>
     105                <h1 class="entry-title col-8"><?php the_title(); ?></h1>
    106106            </header><!-- .entry-header -->
    107107
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about.php

    r6950 r6972  
    6565                        <p><?php esc_html_e( 'Learn about WordPress, where it&#8217;s been, and where it&#8217;s going.', 'wporg' ); ?></p>
    6666                        <ul>
    67                             <li><a href="<?php echo esc_url( home_url( '/about/requirements/' ) ); ?>"><?php esc_html_e( 'Requirements', 'wporg' ); ?></a></li>
    68                             <li><a href="<?php echo esc_url( home_url( '/about/features/' ) ); ?>"><?php esc_html_e( 'Features', 'wporg' ); ?></a></li>
    69                             <li><a href="<?php echo esc_url( home_url( '/about/security/' ) ); ?>"><?php esc_html_e( 'Security', 'wporg' ); ?></a></li>
    70                             <li><a href="<?php echo esc_url( home_url( '/about/roadmap/' ) ); ?>"><?php esc_html_e( 'Roadmap', 'wporg' ); ?></a></li>
    71                             <li><a href="<?php echo esc_url( home_url( '/about/history/' ) ); ?>"><?php esc_html_e( 'History', 'wporg' ); ?></a></li>
     67                            <li><a href="<?php echo esc_url( home_url( '/about/requirements/' ) ); ?>"><?php echo esc_html_x( 'Requirements', 'Page title', 'wporg' ); ?></a></li>
     68                            <li><a href="<?php echo esc_url( home_url( '/about/features/' ) ); ?>"><?php echo esc_html_x( 'Features', 'Page title', 'wporg' ); ?></a></li>
     69                            <li><a href="<?php echo esc_url( home_url( '/about/security/' ) ); ?>"><?php echo esc_html_x( 'Security', 'Page title', 'wporg' ); ?></a></li>
     70                            <li><a href="<?php echo esc_url( home_url( '/about/roadmap/' ) ); ?>"><?php echo esc_html_x( 'Roadmap', 'Page title', 'wporg' ); ?></a></li>
     71                            <li><a href="<?php echo esc_url( home_url( '/about/history/' ) ); ?>"><?php echo esc_html_x( 'History', 'Page title', 'wporg' ); ?></a></li>
    7272                        </ul>
    7373                    </div>
     
    7676                        <p><?php esc_html_e( 'There&#8217;s so much in the details. Stay abreast with the particulars.', 'wporg' ); ?></p>
    7777                        <ul>
    78                             <li><a href="<?php echo esc_url( home_url( '/about/domains/' ) ); ?>"><?php esc_html_e( 'Domains', 'wporg' ); ?></a></li>
    79                             <li><a href="<?php echo esc_url( home_url( '/about/license/' ) ); ?>"><?php esc_html_e( 'GNU Public License', 'wporg' ); ?></a></li>
    80                             <li><a href="<?php echo esc_url( home_url( '/about/accessibility/' ) ); ?>"><?php esc_html_e( 'Accessibility', 'wporg' ); ?></a></li>
    81                             <li><a href="<?php echo esc_url( home_url( '/about/privacy/' ) ); ?>"><?php esc_html_e( 'Privacy Policy', 'wporg' ); ?></a></li>
    82                             <li><a href="<?php echo esc_url( home_url( '/about/stats/' ) ); ?>"><?php esc_html_e( 'Statistics', 'wporg' ); ?></a></li>
     78                            <li><a href="<?php echo esc_url( home_url( '/about/domains/' ) ); ?>"><?php echo esc_html_x( 'Domains', 'Page title', 'wporg' ); ?></a></li>
     79                            <li><a href="<?php echo esc_url( home_url( '/about/license/' ) ); ?>"><?php echo esc_html_x( 'GNU Public License', 'Page title', 'wporg' ); ?></a></li>
     80                            <li><a href="<?php echo esc_url( home_url( '/about/accessibility/' ) ); ?>"><?php echo esc_html_x( 'Accessibility', 'Page title', 'wporg' ); ?></a></li>
     81                            <li><a href="<?php echo esc_url( home_url( '/about/privacy/' ) ); ?>"><?php echo esc_html_x( 'Privacy Policy', 'Page title', 'wporg' ); ?></a></li>
     82                            <li><a href="<?php echo esc_url( home_url( '/about/stats/' ) ); ?>"><?php echo esc_html_x( 'Statistics', 'Page title', 'wporg' ); ?></a></li>
    8383                        </ul>
    8484                    </div>
     
    8787                        <p><?php esc_html_e( 'Learn about the community and how we get along.', 'wporg' ); ?></p>
    8888                        <ul>
    89                             <li><a href="<?php echo esc_url( home_url( '/about/philosophy/' ) ); ?>"><?php esc_html_e( 'Philosophy', 'wporg' ); ?></a></li>
    90                             <li><a href="<?php echo esc_url( home_url( '/about/etiquette/' ) ); ?>"><?php esc_html_e( 'Etiquette', 'wporg' ); ?></a></li>
    91                             <li><a href="<?php echo esc_url( home_url( '/about/swag/' ) ); ?>"><?php esc_html_e( 'Swag', 'wporg' ); ?></a></li>
    92                             <li><a href="<?php echo esc_url( home_url( '/about/logos/' ) ); ?>"><?php esc_html_e( 'Logos and Graphics', 'wporg' ); ?></a></li>
    93                             <li><a href="<?php echo esc_url( home_url( '/about/testimonials/' ) ); ?>"><?php esc_html_e( 'Testimonials', 'wporg' ); ?></a></li>
     89                            <li><a href="<?php echo esc_url( home_url( '/about/philosophy/' ) ); ?>"><?php echo esc_html_x( 'Philosophy', 'Page title', 'wporg' ); ?></a></li>
     90                            <li><a href="<?php echo esc_url( home_url( '/about/etiquette/' ) ); ?>"><?php echo esc_html_x( 'Etiquette', 'Page title', 'wporg' ); ?></a></li>
     91                            <li><a href="<?php echo esc_url( home_url( '/about/swag/' ) ); ?>"><?php echo esc_html_x( 'Swag', 'Page title', 'wporg' ); ?></a></li>
     92                            <li><a href="<?php echo esc_url( home_url( '/about/logos/' ) ); ?>"><?php echo esc_html_x( 'Logos and Graphics', 'Page title', 'wporg' ); ?></a></li>
     93                            <li><a href="<?php echo esc_url( home_url( '/about/testimonials/' ) ); ?>"><?php echo esc_html_x( 'Testimonials', 'Page title', 'wporg' ); ?></a></li>
    9494                        </ul>
    9595                    </div>
Note: See TracChangeset for help on using the changeset viewer.