WordPress.org

Make WordPress Core

Ticket #22547: 22547.diff

File 22547.diff, 906 bytes (added by duck_, 6 years ago)
  • wp-includes/js/plupload/handlers.js

     
    9191        }
    9292
    9393        prepareMediaItem(fileObj, serverData);
    94         updateMediaForm();
     94        //updateMediaForm();
    9595
    9696        // Increment the counter.
    9797        if ( post_id && item.hasClass('child-of-' + post_id) )
     
    124124                item.append(serverData);
    125125                prepareMediaItemInit(fileObj);
    126126        } else { // New style: server data is just the attachment ID, fetch the thumbnail and form html from the server
    127                 item.load('async-upload.php', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit(fileObj);updateMediaForm()});
     127                item.load('async-upload.php', {attachment_id:serverData, fetch:f}, function(){
     128                        prepareMediaItemInit(fileObj);
     129                        //updateMediaForm();
     130                });
    128131        }
    129132}
    130133