WordPress.org

Make WordPress Core

Changeset 22927


Ignore:
Timestamp:
11/29/12 21:23:55 (17 months 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.