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});
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
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