Skip to content
Permalink
Browse files

Upload: Reset the temp upload reference in Plupload when the file is …

…not an image.

See #47872.

git-svn-id: https://develop.svn.wordpress.org/trunk@46081 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
azaozz committed Sep 8, 2019
1 parent d48d56e commit 275f9baeecd6545d72080eb52c277d533f177e2c
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/js/_enqueues/vendor/plupload/handlers.js
  2. +1 −1 src/js/_enqueues/vendor/plupload/wp-plupload.js
@@ -601,7 +601,7 @@ jQuery( document ).ready( function( $ ) {
if ( file.type && file.type.indexOf( 'image/' ) === 0 ) {
up.settings.multipart_params._wp_temp_image_ref = file.id;
} else {
unset( up.settings.multipart_params._wp_temp_image_ref );
up.settings.multipart_params._wp_temp_image_ref = '';
}
} );
};
@@ -326,7 +326,7 @@ window.wp = window.wp || {};
if ( file.type && file.type.indexOf( 'image/' ) === 0 ) {
up.settings.multipart_params._wp_temp_image_ref = file.id;
} else {
unset( up.settings.multipart_params._wp_temp_image_ref );
up.settings.multipart_params._wp_temp_image_ref = '';
}
} );

0 comments on commit 275f9ba

Please sign in to comment.
You can’t perform that action at this time.