Making WordPress.org

Changeset 9434


Ignore:
Timestamp:
01/29/2020 03:49:12 PM (5 years ago)
Author:
SergeyBiryukov
Message:

WordPress.org Main Theme: Requirements: Use the Serve Happy constant for the recommenced PHP version in meta descriptions.

Follow-up to [7990], [8158].

Props Spongsta.
Fixes #4991. See #4114, #4009.

File:
1 edited

Legend:

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

    r9260 r9434  
    77
    88namespace WordPressdotorg\MainTheme;
    9 
    10 /**
    11  * Add custom open-grapgh tags for page templates where the content is hard-coded.
     9use WordPressdotorg\API\Serve_Happy\RECOMMENDED_PHP;
     10
     11/**
     12 * Add custom open-graph tags for page templates where the content is hard-coded.
    1213 *
    1314 * 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.
     
    7374        case 'page-about-history.php':
    7475            $title = esc_html__( 'The History of WordPress', 'wporg' );
    75             /* translators: WordPress market share: 30 - Note: The following percent sign is '%%' for escaping purposes; */
     76            /* translators: %s: WordPress market share: 30 - Note: The following percent sign is '%%' for escaping purposes; */
    7677            $desc = sprintf( esc_html__( 'WordPress currently powers more than %s%% of the web. How did it grow to become the world’s leading web publishing platform? Learn about the history of WordPress: an open source software project built by an active community of contributors who are passionate about collaboration, empowerment, and the open web.', 'wporg' ), number_format_i18n( WP_MARKET_SHARE ) );
    7778            break;
     
    8485        case 'page-about-logos.php':
    8586            $title = esc_html__( 'Graphics & Logos', 'wporg' );
    86             /* translators: Link to foundation trademark policy ; */
     87            /* translators: %s: Link to foundation trademark policy; */
    8788            $desc = sprintf( __( 'When you need the official WordPress logo for a web site or publication, please use one of the following. Please only use logos in accordance with the <a href="%s">WordPress trademark&nbsp;policy</a>.', 'wporg' ), esc_url( 'http://wordpressfoundation.org/trademark-policy/' ) );
    8889            break;
     
    100101        case 'page-about-requirements.php':
    101102            $title = esc_html__( 'Hosting Requirements for WordPress', 'wporg' );
    102             $desc  = esc_html__( 'Running WordPress doesn&#8217;t require a lot, but your host will still need to meet a few minimum requirements. Learn about the website hosting requirements to run WordPress, including our recommendation to support PHP 7.2+ and HTTPS. Not sure how to ask your host for these details? Use the sample email we include.', 'wporg' );
     103            /* translators: %s: PHP version; */
     104            $desc  = sprintf( esc_html__( 'Running WordPress doesn&#8217;t require a lot, but your host will still need to meet a few minimum requirements. Learn about the website hosting requirements to run WordPress, including our recommendation to support PHP %s+ and HTTPS. Not sure how to ask your host for these details? Use the sample email we include.', 'wporg' ), RECOMMENDED_PHP );
    103105            break;
    104106
     
    110112        case 'page-about-security.php':
    111113            $title = esc_html__( 'WordPress is Secure', 'wporg' );
    112             /* translators: WordPress market share: 30 - Note: The following percent sign is '%%' for escaping purposes; */
     114            /* translators: %s: WordPress market share: 30 - Note: The following percent sign is '%%' for escaping purposes; */
    113115            $desc = sprintf( esc_html__( 'Why is WordPress recommended as a secure website-building solution? With a passionate open source community and an extensible, easy-to-use platform, WordPress provides flexible and secure options for all levels of users, from beginners to pros. Learn how WordPress guarantees the security of %s%% of the web.', 'wporg' ), number_format_i18n( WP_MARKET_SHARE ) );
    114116            break;
Note: See TracChangeset for help on using the changeset viewer.