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:
parent
4a91b43ab2
commit
5c0e068d3f
|
@ -45,7 +45,7 @@
|
||||||
sizes = attachment.sizes;
|
sizes = attachment.sizes;
|
||||||
size = sizes && sizes[ props.size ] ? sizes[ props.size ] : attachment;
|
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,
|
width: size.width,
|
||||||
height: size.height,
|
height: size.height,
|
||||||
src: size.url,
|
src: size.url,
|
||||||
|
|
Loading…
Reference in New Issue