WordPress.org

Make WordPress Core

Ticket #20445: 20445.patch

File 20445.patch, 595 bytes (added by SergeyBiryukov, 2 years ago)
  • wp-includes/js/plupload/handlers.dev.js

     
    8383        serverData = serverData.replace(/^<pre>(\d+)<\/pre>$/, '$1'); 
    8484 
    8585        // if async-upload returned an error message, place it in the media item div and return 
    86         if ( serverData.match('media-upload-error') ) { 
     86        if ( serverData.match('media-upload-error') || serverData.match('error-div') ) { 
    8787                item.html(serverData); 
    8888                return; 
    8989        } else {