WordPress.org

Making WordPress.org

Changeset 10261


Ignore:
Timestamp:
09/16/2020 03:03:01 AM (15 months ago)
Author:
dd32
Message:

WordPress.org: Split the translated post titles for the About page. We use 'About Us: Our Mission' in the <title> but expect it to be About in other titles.

Fixes #5433.

File:
1 edited

Legend:

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

    r9434 r10261  
    321321
    322322        case 'page-about.php':
    323             $title = esc_html_x( 'About Us: Our Mission', 'Page title', 'wporg' );
     323            if ( 'single_post_title' === current_filter() ) {
     324                $title = esc_html_x( 'About Us: Our Mission', 'Page title', 'wporg' );
     325            } else {
     326                $title = esc_html_x( 'About', 'Page title', 'wporg' );
     327            }
    324328            break;
    325329
Note: See TracChangeset for help on using the changeset viewer.