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:
Scott Taylor 2014-11-30 06:19:23 +00:00
parent 0b54cfd77b
commit 67e5d4041c
3 changed files with 3 additions and 3 deletions

View File

@ -6405,7 +6405,7 @@
changed.push( model.save() );
removed.push( model );
} else {
model.destroy();
model.destroy({wait: true});
}
} );

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @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.