mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-03 01:58:13 +02:00
When deleting media grid attachments, wait until the server responds before removing the model from its collection.
Props 5um17. Fixes #30457. Built from https://develop.svn.wordpress.org/trunk@30638 git-svn-id: http://core.svn.wordpress.org/trunk@30628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0b54cfd77b
commit
67e5d4041c
@ -6405,7 +6405,7 @@
|
|||||||
changed.push( model.save() );
|
changed.push( model.save() );
|
||||||
removed.push( model );
|
removed.push( model );
|
||||||
} else {
|
} else {
|
||||||
model.destroy();
|
model.destroy({wait: true});
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
2
wp-includes/js/media-views.min.js
vendored
2
wp-includes/js/media-views.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-beta2-30637';
|
$wp_version = '4.1-beta2-30638';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
Block a user