Hide the editor uploader overlay on all drop events in the window, not only when dropping on the editor uploader element.


Fixes #34251, #22403.
Built from https://develop.svn.wordpress.org/trunk@35019


git-svn-id: http://core.svn.wordpress.org/trunk@34984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-10-10 23:50:25 +00:00
parent 11def634f6
commit 8dd2a31c38
7 changed files with 16 additions and 11 deletions

View File

@ -7855,6 +7855,10 @@ EditorUploader = View.extend({
this.$document.on( 'dragstart dragend drop', _.bind( function( event ) {
this.localDrag = event.type === 'dragstart';
if ( event.type === 'drop' ) {
this.containerDragleave();
}
}, this ) );
this.initialized = true;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -288,7 +288,7 @@ function wp_default_scripts( &$scripts ) {
'error_uploading' => __('“%s” has failed to upload.')
);
$scripts->add( 'plupload', '/wp-includes/js/plupload/plupload.full.min.js', array(), '2.1.1' );
$scripts->add( 'plupload', '/wp-includes/js/plupload/plupload.full.min.js', array(), '2.1.8' );
// Back compat handles:
foreach ( array( 'all', 'html5', 'flash', 'silverlight', 'html4' ) as $handle ) {
$scripts->add( "plupload-$handle", false, array( 'plupload' ), '2.1.1' );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-35018';
$wp_version = '4.4-alpha-35019';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.