mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user