Make WordPress Core

Changeset 23285


Ignore:
Timestamp:
01/05/2013 02:02:29 AM (12 years ago)
Author:
ryan
Message:

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

fixes #22815
for 3.5

Location:
branches/3.5
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.5

  • branches/3.5/wp-admin/includes/update-core.php

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/3.5/wp-includes/js/media-views.js

    r23284 r23285  
    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.