diff --git a/src/js/media/models/attachments.js b/src/js/media/models/attachments.js
index 2819093093..f80cac42f6 100644
a
|
b
|
var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen |
151 | 151 | */ |
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.context |
158 | | ) { |
159 | | return false; |
160 | | } |
161 | | |
162 | 154 | if ( ! this.validateDestroyed && attachment.destroyed ) { |
163 | 155 | return false; |
164 | 156 | } |