Make WordPress Core


Ignore:
Timestamp:
07/28/2020 11:29:28 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Themes: Include theme name in available update messages, for better accessibility and consistency with other similar messages.

Follow-up to [48652-48654].

See #48491.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/theme.php

    r48652 r48659  
    812812                                    <# if ( ! data.updateResponse.compatibleWP && ! data.updateResponse.compatiblePHP ) { #>
    813813                                        <?php
    814                                         _e( 'There is a new version available, but it doesn&#8217;t work with your versions of WordPress and PHP.' );
     814                                        printf(
     815                                            /* translators: %s: Theme name. */
     816                                            __( 'There is a new version of %s available, but it doesn&#8217;t work with your versions of WordPress and PHP.' ),
     817                                            '{{{ data.name }}}'
     818                                        );
    815819                                        if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
    816820                                            printf(
     
    838842                                    <# } else if ( ! data.updateResponse.compatibleWP ) { #>
    839843                                        <?php
    840                                         _e( 'There is a new version available, but it doesn&#8217;t work with your version of WordPress.' );
     844                                        printf(
     845                                            /* translators: %s: Theme name. */
     846                                            __( 'There is a new version of %s available, but it doesn&#8217;t work with your version of WordPress.' ),
     847                                            '{{{ data.name }}}'
     848                                        );
    841849                                        if ( current_user_can( 'update_core' ) ) {
    842850                                            printf(
     
    849857                                    <# } else if ( ! data.updateResponse.compatiblePHP ) { #>
    850858                                        <?php
    851                                         _e( 'There is a new version available, but it doesn&#8217;t work with your version of PHP.' );
     859                                        printf(
     860                                            /* translators: %s: Theme name. */
     861                                            __( 'There is a new version of %s available, but it doesn&#8217;t work with your version of PHP.' ),
     862                                            '{{{ data.name }}}'
     863                                        );
    852864                                        if ( current_user_can( 'update_php' ) ) {
    853865                                            printf(
Note: See TracChangeset for help on using the changeset viewer.