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
This commit is contained in:
Andrew Nacin 2012-11-29 21:23:55 +00:00
parent 4a91b43ab2
commit 5c0e068d3f
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,