[wp-trac] [WordPress Trac] #29056: Media Grid: Support media_row_actions

WordPress Trac noreply at wordpress.org
Sun Sep 7 15:38:52 UTC 2014


#29056: Media Grid: Support media_row_actions
-------------------------------------+-------------------------------------
 Reporter:  pavelevap                |       Owner:
     Type:  defect (bug)             |      Status:  closed
 Priority:  low                      |   Milestone:
Component:  Media                    |     Version:  4.0
 Severity:  normal                   |  Resolution:  wontfix
 Keywords:  dev-feedback 2nd-        |     Focuses:  ui, javascript,
  opinion                            |  administration
-------------------------------------+-------------------------------------

Comment (by swift):

 Just to follow-up and confirm here - there is no way for plugins to inject
 content (action links/buttons) into the sidebar of the Attachment Details
 modal that comes up when an image is clicked in the new grid view?

 If so, that's really unfortunate as there is no easy way to add actions to
 media in grid view because they can't show up anywhere. This is an
 important feature that should be implemented. I can certainly see how it
 may get complicated to port support from `media_row_actions`, but at the
 least, there should be a new action hook here to implement this
 functionality.

 Replying to [comment:5 helen]:
 > As noted, I've landed on not supporting this action in the context of
 the details modal, and the grid does not lend itself to supporting it,
 either. It's not a table, and therefore not a "row". You also do not get
 `$post` context in the JS template like you do in PHP, thus making it
 necessary to do another compat workaround. I would suggest using
 `attachment_fields_to_edit` instead, which would also make it available in
 the original media modal. If we need to add/check more context for
 where/when to display stuff added in that hook, then we can open a new
 ticket for that.

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


More information about the wp-trac mailing list