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:
parent
e26f739e53
commit
c0b5127683
|
@ -601,7 +601,7 @@ jQuery( document ).ready( function( $ ) {
|
||||||
if ( file.type && file.type.indexOf( 'image/' ) === 0 ) {
|
if ( file.type && file.type.indexOf( 'image/' ) === 0 ) {
|
||||||
up.settings.multipart_params._wp_temp_image_ref = file.id;
|
up.settings.multipart_params._wp_temp_image_ref = file.id;
|
||||||
} else {
|
} 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
|
@ -326,7 +326,7 @@ window.wp = window.wp || {};
|
||||||
if ( file.type && file.type.indexOf( 'image/' ) === 0 ) {
|
if ( file.type && file.type.indexOf( 'image/' ) === 0 ) {
|
||||||
up.settings.multipart_params._wp_temp_image_ref = file.id;
|
up.settings.multipart_params._wp_temp_image_ref = file.id;
|
||||||
} else {
|
} 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
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue