Skip to content

Commit 9c00ed2

Browse files
committed
Media: Adjust alt text info link text.
Previous messaging of this link was confusing given it went to an external source. This change describes more accurately that it will perform the action of taking you to the resource. Props karmatosed, joedolson, melchoyce, hellofromTonya, afercia, sabernhardt, antpb. Fixes #48939. git-svn-id: https://develop.svn.wordpress.org/trunk@52033 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8ac6425 commit 9c00ed2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-admin/includes/media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3228,7 +3228,7 @@ function edit_form_image_editor( $post ) {
32283228

32293229
printf(
32303230
/* 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.' ),
3231+
__( '<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.' ),
32323232
esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ),
32333233
'target="_blank" rel="noopener"',
32343234
sprintf(

src/wp-includes/media-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function wp_print_media_templates() {
158158

159159
$alt_text_description = sprintf(
160160
/* 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.' ),
161+
__( '<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.' ),
162162
esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ),
163163
'target="_blank" rel="noopener"',
164164
sprintf(

0 commit comments

Comments
 (0)