#39780 closed defect (bug) (fixed)
JS error when bulk deleting attachments with MEDIA_TRASH enabled
| Reported by: | SergeyBiryukov | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.8 |
| Component: | Media | Version: | 4.0 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | javascript |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 40051: