WordPress.org

Make WordPress Core

Changeset 23263


Ignore:
Timestamp:
01/04/13 08:28:12 (16 months ago)
Author:
koopersmith
Message:

Media: Properly reset the "add to gallery" library to ensure it accurately reflects the current gallery. see #22815.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-views.js

    r23262 r23263  
    662662            }; 
    663663 
     664            // Reset the library to ensure that all attachments are re-added 
     665            // to the collection. Do so silently, as calling `observe` will 
     666            // trigger the `reset` event. 
     667            library.reset( library.mirroring.models, { silent: true }); 
    664668            library.observe( edit ); 
    665669            this.editLibrary = edit; 
Note: See TracChangeset for help on using the changeset viewer.