#39780 closed defect (bug) (fixed)
JS error when bulk deleting attachments with MEDIA_TRASH enabled
Reported by: | SergeyBiryukov | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.8 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Media | Keywords: | |
Focuses: | javascript | Cc: |
Description
- Add
define('MEDIA_TRASH', true);
towp-config.php
. - Go to Media Library and enable the grid view.
- Upload three media files.
- Move the newly uploaded files to Trash.
- Go to Trash and click "Bulk Select".
- Select all the three files and click "Delete Selected".
- Only two files are deleted, and there's a JS error in the console:
Uncaught TypeError: Cannot read property 'get' of undefined http://develop.wordpress.dev/src/wp-includes/js/media-views.js?ver=4.8-alpha-39357-src line 3966
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 40051: