[wp-trac] [WordPress Trac] #29145: MEDIA_TRASH audit for Media Grid

WordPress Trac noreply at wordpress.org
Thu Aug 14 05:43:44 UTC 2014


#29145: MEDIA_TRASH audit for Media Grid
----------------------------+-----------------------------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  4.0
Component:  Media           |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:  javascript, administration
----------------------------+-----------------------------------------

Comment (by wonderboymusic):

 Delete/Trash Scenarios:

 No. 1
 * Open the Media Grid
 * Click an item to open the modal
 * Click "Delete"
 * Modal closes
 * Item is not in library
 * Refresh the page: item is not there

 No. 2
 * add `define( 'MEDIA_TRASH', true )` to `wp-config.php`
 * Open the Media Grid
 * Click an item to open the modal
 * Click "Trash"
 * Modal closes
 * Item is not in library
 * Refresh the page: item is not there

 No. 3
 * add `define( 'MEDIA_TRASH', true )` to `wp-config.php`
 * Open the Media Grid
 * Select "Trash" from the filters dropdown
 * Click an item to open the modal
 * Click "Untrash"
 * Modal closes
 * Item is in library
 * Refresh the page: item is there (In "All Media Items", not "Trash")

 No. 4
 * Remove `define( 'MEDIA_TRASH', true )` to `wp-config.php`
 * Open the Media Grid
 * Click "Bulk Select"
 * Click two items to select them
 * Click "Delete Selected"
 * Confirm both items are removed
 * Confirm that "Trash" is not an available filter
 * Refresh the page, both items are gone

 No. 5
 * Add `define( 'MEDIA_TRASH', true )` to `wp-config.php`
 * Open the Media Grid
 * Click "Bulk Select"
 * Click two items to select them
 * Click "Trash Selected"
 * Confirm both items are removed
 * Confirm that "Trash" is an available filter
 * Select the "Trash" filter, confirm that both items are there
 * Refresh the page, confirm the items are not in the library
 * Select the "Trash" filter, confirm that both items are there

 No. 6
 * Add `define( 'MEDIA_TRASH', true )` to `wp-config.php`
 * Open the Media Grid
 * Click "Bulk Select"
 * Click two items to select them
 * Click "Trash Selected"
 * Confirm both items are removed
 * Confirm that "Trash" is an available filter
 * Select the "Trash" filter, confirm that both items are there
 * Click "Bulk Select"
 * Select an item
 * Click "Untrash Selected"
 * Confirm that item is removed from Trash
 * Select the "All Media Items" filter
 * Confirm that the item is present
 * Select the "Trash" filter
 * Confirm the item is not present

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29145#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list