In wp_media_upload_handler(), replace a lingering instance of media_upload_gallery() with wp_iframe(...)

Props jeffstieler, antpb.
Fixes #17812. 


git-svn-id: https://develop.svn.wordpress.org/trunk@34003 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-09-10 17:23:23 +00:00
parent 7178b67671
commit 0a7636cfa3

View File

@ -805,7 +805,9 @@ function wp_media_upload_handler() {
if ( isset( $_POST['save'] ) ) {
$errors['upload_notice'] = __('Saved.');
return media_upload_gallery();
wp_enqueue_script( 'admin-gallery' );
return wp_iframe( 'media_upload_gallery_form', $errors );
} elseif ( ! empty( $_POST ) ) {
$return = media_upload_form_handler();