[wp-trac] [WordPress Trac] #28038: Only show the Edit Image option in the media modal if aplicable
WordPress Trac
noreply at wordpress.org
Sat Apr 26 11:46:31 UTC 2014
#28038: Only show the Edit Image option in the media modal if aplicable
--------------------------------+-----------------------------
Reporter: Clorith | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.9
Severity: normal | Keywords:
Focuses: ui, administration |
--------------------------------+-----------------------------
The general media screen filters out the edit option if there's no valid
image processing library found. In the media modal this check is never
performed so the Edit Image button is available regardless, and thus shows
a broken image.
For consistency, I've added a check to not display the edit link if no
library is found using `wp_image_editor_supports`.
I tested with a variety of file types, and couldn't find any other files
that would trigger the Edit option in the modal to begin with, so I
believe this should be a safe patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28038>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list