Make WordPress Core

Changeset 34003


Ignore:
Timestamp:
09/10/2015 05:23:23 PM (9 years ago)
Author:
wonderboymusic
Message:

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

Props jeffstieler, antpb.
Fixes #17812.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r33734 r34003  
    806806    if ( isset( $_POST['save'] ) ) {
    807807        $errors['upload_notice'] = __('Saved.');
    808         return media_upload_gallery();
     808        wp_enqueue_script( 'admin-gallery' );
     809        return wp_iframe( 'media_upload_gallery_form', $errors );
     810
    809811    } elseif ( ! empty( $_POST ) ) {
    810812        $return = media_upload_form_handler();
Note: See TracChangeset for help on using the changeset viewer.