[wp-trac] [WordPress Trac] #28842: Media Grid: Bulk selection mode

WordPress Trac noreply at wordpress.org
Tue Aug 5 14:23:41 UTC 2014


#28842: Media Grid: Bulk selection mode
--------------------------+---------------------------------------------
 Reporter:  helen         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.0
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  ui, javascript, administration
--------------------------+---------------------------------------------

Comment (by nosilver4u):

 It would be nice to allow developers to extend the bulk actions drop-down
 on the grid view. In EWWW Image Optimizer (and a few other plugins)
 developers are using a slightly hacky js+redirect method to add an action,
 and then send the user where we want based on that custom action.

 While it would be preferable to give us some hooks to extend the bulk
 actions (from my perspective), if it isn't intended to let folks extend
 the bulk actions, and Delete Permanently is the only option, I wonder if
 this comment begins to make more sense:
 http://make.wordpress.org/ui/2014/07/22/media-grid-user-testing-
 round-1/#comment-24457
 That would make 2 clicks instead of 4, and you're still asking the user
 for confirmation before they blow up anything.

 At any rate, I've managed to add my own 'Bulk Optimize' action via the
 javascript method I mentioned (borrowed from viper007bond's regenerate
 thumbnails plugin). Unfortunately, it actually attempts to delete the
 images, because the drop-down on the grid mode is js-based, instead of
 submitting via POST like the old one. I barely know enough js to be
 dangerous, so any guidance here would be appreciated.

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


More information about the wp-trac mailing list