Ticket #48939: 48939.patch
File 48939.patch, 2.2 KB (added by , 3 years ago) |
---|
-
src/wp-admin/includes/media.php
3226 3226 <p class="attachment-alt-text-description" id="alt-text-description"> 3227 3227 <?php 3228 3228 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 3229 3232 printf( 3230 3233 /* 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 ), 3233 3236 'target="_blank" rel="noopener"', 3234 3237 sprintf( 3235 3238 '<span class="screen-reader-text"> %s</span>', -
src/wp-includes/media-template.php
156 156 function wp_print_media_templates() { 157 157 $class = 'media-modal wp-core-ui'; 158 158 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/' ); 159 161 $alt_text_description = sprintf( 160 162 /* 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 ), 163 165 'target="_blank" rel="noopener"', 164 166 sprintf( 165 167 '<span class="screen-reader-text"> %s</span>',