Make WordPress Core

Ticket #48939: 48939.patch

File 48939.patch, 2.2 KB (added by sabernhardt, 3 years ago)

both PHP instances: editing text and replacing link for a potentially localized WordPress.org resource

  • src/wp-admin/includes/media.php

     
    32263226                <p class="attachment-alt-text-description" id="alt-text-description">
    32273227                <?php
    32283228
     3229                /* translators: Link to tutorial that describes how to use alternative text and alt attributes. */
     3230                $alt_text_tutorial = __( 'https://make.wordpress.org/accessibility/handbook/content/alternative-text-for-images/' );
     3231
    32293232                printf(
    32303233                        /* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */
    3231                         __( '<a href="%1$s" %2$s>Describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
    3232                         esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ),
     3234                        __( '<a href="%1$s" %2$s>Learn how to describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
     3235                        esc_url( $alt_text_tutorial ),
    32333236                        'target="_blank" rel="noopener"',
    32343237                        sprintf(
    32353238                                '<span class="screen-reader-text"> %s</span>',
  • src/wp-includes/media-template.php

     
    156156function wp_print_media_templates() {
    157157        $class = 'media-modal wp-core-ui';
    158158
     159        /* translators: Link to tutorial that describes how to use alternative text and alt attributes. */
     160        $alt_text_tutorial    = __( 'https://make.wordpress.org/accessibility/handbook/content/alternative-text-for-images/' );
    159161        $alt_text_description = sprintf(
    160162                /* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */
    161                 __( '<a href="%1$s" %2$s>Describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
    162                 esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ),
     163                __( '<a href="%1$s" %2$s>Learn how to describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
     164                esc_url( $alt_text_tutorial ),
    163165                'target="_blank" rel="noopener"',
    164166                sprintf(
    165167                        '<span class="screen-reader-text"> %s</span>',