WordPress.org

Make WordPress Core

Ticket #17812: 17812-2.diff

File 17812-2.diff, 518 bytes (added by antpb, 6 years ago)
  • wp-admin/includes/media.php

     
    805805
    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();
    811813