[wp-trac] [WordPress Trac] #39780: JS error when bulk deleting attachments with MEDIA_TRASH enabled

WordPress Trac noreply at wordpress.org
Fri Feb 3 20:41:44 UTC 2017


#39780: JS error when bulk deleting attachments with MEDIA_TRASH enabled
----------------------------+-----------------------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Media           |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 1. Add `define('MEDIA_TRASH', true);` to `wp-config.php`.
 2. Go to Media Library and enable the grid view.
 3. Upload three media files.
 4. Move the newly uploaded files to Trash.
 5. Go to Trash and click "Bulk Select".
 6. Select all the three files and click "Delete Selected".
 7. 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
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39780>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list