From f77c42770302df9e48de13a2d886033c932da532 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: http://core.svn.wordpress.org/trunk@22927 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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,