[wp-trac] [WordPress Trac] #28038: Only show the Edit Image option in the media modal if applicable

WordPress Trac noreply at wordpress.org
Thu May 1 08:39:13 UTC 2014


#28038: Only show the Edit Image option in the media modal if applicable
--------------------------+---------------------------------
 Reporter:  Clorith       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.9.1
Component:  Media         |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  ui, administration
--------------------------+---------------------------------

Comment (by Clorith):

 My experience with caching is limited to transients, would that be a
 sufficient approach in this situation (that would leave a DB query, I
 don't know how they compare in cost to `_wp_image_editor_choose()`).

 Other than that, moving the media check around a little to account for
 other media types needing other nonces shouldn't be a problem at all.

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


More information about the wp-trac mailing list