Changeset 40670
- Timestamp:
- 05/15/2017 06:41:59 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/widgets/media-image-widget.js
r40640 r40670 110 110 111 111 /** 112 * Get the instance props from the media selection frame. 113 * 114 * Prevent the image_title attribute from being initially set when adding an image from the media library. 115 * 116 * @param {wp.media.view.MediaFrame.Select} mediaFrame - Select frame. 117 * @returns {Object} Props. 118 */ 119 getModelPropsFromMediaFrame: function getModelPropsFromMediaFrame( mediaFrame ) { 120 var control = this; 121 return _.omit( 122 component.MediaWidgetControl.prototype.getModelPropsFromMediaFrame.call( control, mediaFrame ), 123 'image_title' 124 ); 125 }, 126 127 /** 112 128 * Map model props to preview template props. 113 129 *
Note: See TracChangeset
for help on using the changeset viewer.