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
This commit is contained in:
Andrew Nacin 2012-11-29 21:23:55 +00:00
parent 84bdd320e2
commit f77c427703
1 changed files with 1 additions and 1 deletions

View File

@ -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,