From 5c0e068d3f0dc8f2835519c93ce66cf5170a5eca Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 29 Nov 2012 21:23:55 +0000 Subject: [PATCH] Send the alt attribute when sending attachments to the editor. fixes #22640. git-svn-id: https://develop.svn.wordpress.org/trunk@22927 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/media-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/js/media-editor.js b/wp-includes/js/media-editor.js index 1df67917fd..9f21a38cd1 100644 --- a/wp-includes/js/media-editor.js +++ b/wp-includes/js/media-editor.js @@ -45,7 +45,7 @@ sizes = attachment.sizes; size = sizes && sizes[ props.size ] ? sizes[ props.size ] : attachment; - _.extend( props, _.pick( attachment, 'align', 'caption' ), { + _.extend( props, _.pick( attachment, 'align', 'caption', 'alt' ), { width: size.width, height: size.height, src: size.url,