diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index e30cc08b1b..5c54b21402 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -3020,15 +3020,15 @@ function edit_form_image_editor( $post ) {

', + /* 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.' ), + esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ), + 'target="_blank" rel="noopener noreferrer"', sprintf( ' %s', /* translators: accessibility text */ __( '(opens in a new tab)' ) - ), - '' + ) ); ?>

diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index 1711f50ab4..d730cac7d7 100644 --- a/wp-includes/media-template.php +++ b/wp-includes/media-template.php @@ -163,15 +163,15 @@ function wp_print_media_templates() { } $alt_text_description = sprintf( - /* translators: 1: link start tag, 2: accessibility text, 3: link end tag */ - __( '%1$sDescribe the purpose of the image%2$s%3$s. Leave empty if the image is purely decorative.' ), - '', + /* 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.' ), + esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ), + 'target="_blank" rel="noopener noreferrer"', sprintf( ' %s', /* translators: accessibility text */ __( '(opens in a new tab)' ) - ), - '' + ) ); ?>