- Timestamp:
- 03/18/2018 04:19:50 PM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
- Property svn:mergeinfo changed
/trunk merged: 42739-42740
- Property svn:mergeinfo changed
-
branches/4.9/src/wp-includes/js/media/controllers/library.js
r41937 r42848 86 86 } 87 87 88 this._filterContext();89 this.get('library').on( 'add', this._filterContext, this );90 91 88 this.resetDisplays(); 92 89 }, … … 288 285 setUserSetting( 'libraryContent', mode ); 289 286 } 290 },291 292 /**293 * Filter out contextually created attachments (e.g. headers, logos, etc.)294 *295 * @since 4.9.0296 */297 _filterContext: function() {298 var library = this.get('library');299 300 library.set( library.filter( function( item ) {301 return item.get('context') === '';302 } ) );303 287 } 288 304 289 }); 305 290
Note: See TracChangeset
for help on using the changeset viewer.