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:
parent
84bdd320e2
commit
f77c427703
|
@ -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