Upload: Reset the temp upload reference in Plupload when the file is not an image.

See #47872.
Built from https://develop.svn.wordpress.org/trunk@46081


git-svn-id: http://core.svn.wordpress.org/trunk@45893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2019-09-08 02:28:55 +00:00
parent e26f739e53
commit c0b5127683
5 changed files with 5 additions and 5 deletions

View File

@ -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 = '';
}
} );
};

File diff suppressed because one or more lines are too long

View File

@ -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 = '';
}
} );

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.3-alpha-46080';
$wp_version = '5.3-alpha-46081';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.