Changeset 48989
- Timestamp:
- 09/17/2020 02:40:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/media/models/attachments.js
r48650 r48989 152 152 validator: function( attachment ) { 153 153 154 // Filter out contextually created attachments (e.g. headers, logos, etc.).155 if (156 ! _.isUndefined( attachment.attributes.context ) &&157 '' !== attachment.attributes.context158 ) {159 return false;160 }161 162 154 if ( ! this.validateDestroyed && attachment.destroyed ) { 163 155 return false;
Note: See TracChangeset
for help on using the changeset viewer.