Opened 13 years ago
Closed 13 years ago
#22596 closed defect (bug) (fixed)
Only show editor button when it's an image
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.5 | Priority: | normal |
| Severity: | normal | Version: | 3.5 |
| Component: | Media | Keywords: | has-patch commit |
| Focuses: | Cc: |
Description
Imagick supports a bunch of mime types to be edited but WordPress itself doesn't allow that.
So when you upload a PDF you can press the 'Edit Image' button but get an error instead: "Image data does not exist. Please re-upload the image.".
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Add wp_attachment_is_image() checks