WordPress.org

Make WordPress Core

Changeset 22927


Ignore:
Timestamp:
11/29/2012 09:23:55 PM (5 years ago)
Author:
nacin
Message:

Send the alt attribute when sending attachments to the editor. fixes #22640.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-editor.js

    r22912 r22927  
    4646                size = sizes && sizes[ props.size ] ? sizes[ props.size ] : attachment;
    4747
    48                 _.extend( props, _.pick( attachment, 'align', 'caption' ), {
     48                _.extend( props, _.pick( attachment, 'align', 'caption', 'alt' ), {
    4949                    width:     size.width,
    5050                    height:    size.height,
Note: See TracChangeset for help on using the changeset viewer.