From 9c00ed206984f41abdeb6ef22d62250362e6a43c Mon Sep 17 00:00:00 2001 From: Anthony Burchell Date: Mon, 8 Nov 2021 00:21:50 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/media.php | 2 +- src/wp-includes/media-template.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php index 8768c75ee2..b015836a8b 100644 --- a/src/wp-admin/includes/media.php +++ b/src/wp-admin/includes/media.php @@ -3228,7 +3228,7 @@ function edit_form_image_editor( $post ) { printf( /* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */ - __( 'Describe the purpose of the image%3$s. Leave empty if the image is purely decorative.' ), + __( 'Learn how to describe the purpose of the image%3$s. Leave empty if the image is purely decorative.' ), esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ), 'target="_blank" rel="noopener"', sprintf( diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php index 46e20f48d7..f89945d45b 100644 --- a/src/wp-includes/media-template.php +++ b/src/wp-includes/media-template.php @@ -158,7 +158,7 @@ function wp_print_media_templates() { $alt_text_description = sprintf( /* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */ - __( 'Describe the purpose of the image%3$s. Leave empty if the image is purely decorative.' ), + __( 'Learn how to describe the purpose of the image%3$s. Leave empty if the image is purely decorative.' ), esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ), 'target="_blank" rel="noopener"', sprintf(