Making WordPress.org

Changeset 9211


Ignore:
Timestamp:
10/21/2019 02:56:47 AM (7 years ago)
Author:
dd32
Message:

Theme Directory: Use the translated page titles in the header.

See #4680.

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

Legend:

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

    r5738 r9211  
    55 * @package wporg-themes
    66 */
     7
     8// Use the translated post title.
     9add_filter( 'single_post_title', function( $title ) {
     10        if ( 'Commercially Supported GPL Themes' === $title ) {
     11                $title = __( 'Commercially Supported GPL Themes', 'wporg-themes' );
     12        }
     13
     14        return $title;
     15}, 1 );
    716
    817$theme_shops = wporg_themes_query_api( 'get_commercial_shops' )->shops;
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/page-getting-started.php

    r6320 r9211  
    55 * @package wporg-themes
    66 */
     7
     8// Use the translated post title.
     9add_filter( 'single_post_title', function( $title ) {
     10        if ( 'Getting Started' === $title ) {
     11                $title = __( 'Getting Started', 'wporg-themes' );
     12        }
     13
     14        return $title;
     15}, 1 );
    716
    817get_header();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/page-upload.php

    r8467 r9211  
    1414        }
    1515}
     16
     17// Use the translated post title.
     18add_filter( 'single_post_title', function( $title ) {
     19        if ( 'Submit Your Theme or Theme Update to the Directory' === $title ) {
     20                $title = __( 'Submit Your Theme or Theme Update to the Directory', 'wporg-themes' );
     21        }
     22
     23        return $title;
     24}, 1 );
    1625
    1726get_header();
Note: See TracChangeset for help on using the changeset viewer.