Make WordPress Core

Changeset 22156


Ignore:
Timestamp:
10/10/2012 08:47:15 AM (12 years ago)
Author:
koopersmith
Message:

Reset the media modal to the library view after inserting a gallery. fixes #22151, see #21390, #21809.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/media-upload.js

    r22155 r22156  
    123123                shortcode = view.gallery.shortcode( selection );
    124124                this.insert( shortcode.string() );
     125
     126                // Reset the workflow view to the library.
     127                workflow.render('library');
    125128            }, this );
    126129
Note: See TracChangeset for help on using the changeset viewer.