Go to file
Scott Taylor 32c1d55d1f Media Grid:
* In Bulk Edit mode, don't attempt to delete or trash an attachment that doesn't have a `delete` nonce. The subsequent `_requery()` will then properly display the attachment still present in the library.
* Remove all updated models from the selection at the same time to avoid async race conditions. The selection is reset when the grid's `select` mode is deactivated, but this allows this view instance to be more portable.

This fix allows users to set caps on individual attachments without confusing the grid's library. This issue was present for bulk actions in general, had nothing to do with `MEDIA_TRASH` specifically.

Fixes #29597.


git-svn-id: https://develop.svn.wordpress.org/trunk@29755 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-21 18:51:41 +00:00
src Media Grid: 2014-09-21 18:51:41 +00:00
tests `wptexturize()` improvements: 2014-09-17 15:13:24 +00:00
tools/i18n Fix strict notices in makepot. 2014-08-21 02:53:16 +00:00
.editorconfig Multiple strings in .editorconfig section names should be wrapped in curly brackets. 2014-06-24 10:54:41 +00:00
.gitignore
.jshintrc
.travis.yml
Gruntfile.js Gruntfile: Change import rules to include RTL stylesheets when running CSSJanus. 2014-07-21 02:50:45 +00:00
package.json 4.1 version bumps. 2014-09-05 19:44:38 +00:00
phpunit.xml.dist
wp-cli.yml
wp-config-sample.php Remove 'WordPress Language' reference from wp-config-sample.php. 2014-09-09 01:22:05 +00:00
wp-tests-config-sample.php