WordPress.org

Make WordPress Core

Ticket #37246: 37246.8.diff

File 37246.8.diff, 2.0 KB (added by ocean90, 3 years ago)

https://wordpress.slack.com/archives/core/p1470890054003385

  • src/wp-admin/about.php

     
    3434}
    3535
    3636$video_url = 'https://videopress.com/embed/scFdjVo6?hd=true';
    37 $locale    = str_replace( '_', '-', get_locale() );
    38 list( $locale ) = explode( '-', $locale );
     37$video_locale = str_replace( '_', '-', get_locale() );
     38list( $video_locale ) = explode( '-', $video_locale );
    3939if ( 'en' !== $locale ) {
    40         $video_url = add_query_arg( 'defaultLangCode', $locale, $video_url );
     40        $video_url = add_query_arg( 'defaultLangCode', $video_locale, $video_url );
    4141}
    4242
    4343$title = __( 'About' );
     
    180180                        <div class="under-the-hood two-col">
    181181                                <div class="col">
    182182                                        <h3><?php _e( 'Customizer APIs for Setting Validation and Notifications' ); ?></h3>
    183                                         <p><?php _e( 'Settings now have an <a href="https://make.wordpress.org/core/2016/07/05/customizer-apis-in-4-6-for-setting-validation-and-notifications/">API for enforcing validation constraints</a>. Likewise Customizer controls now support notifications which are used to display validation errors instead of failing silently.' ); ?></p>
     183                                        <p><?php
     184                                                if ( 'en_US' === get_locale() ) {
     185                                                        echo 'Settings now have an <a href="https://make.wordpress.org/core/2016/07/05/customizer-apis-in-4-6-for-setting-validation-and-notifications/">API for enforcing validation constraints</a>. Likewise, Customizer controls now support notifications, which are used to display validation errors instead of failing silently.';
     186                                                } else {
     187                                                        _e( 'Settings now have an <a href="https://make.wordpress.org/core/2016/07/05/customizer-apis-in-4-6-for-setting-validation-and-notifications/">API for enforcing validation constraints</a>. Likewise Customizer controls now support notifications which are used to display validation errors instead of failing silently.' );
     188                                                }
     189                                        ?></p>
    184190                                </div>
    185191                                <div class="col">
    186192                                        <h3><?php _e( 'Multisite, now faster than ever' ); ?></h3>