Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#22596 closed defect (bug) (fixed)

Only show editor button when it's an image

Reported by: markoheijnen's profile markoheijnen Owned by: ryan's profile ryan
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)

22596.diff (1.4 KB) - added by markoheijnen 13 years ago.
Add wp_attachment_is_image() checks

Download all attachments as: .zip

Change History (4)

@markoheijnen
13 years ago

Add wp_attachment_is_image() checks

#1 @kirasong
13 years ago

Tested; looks good, thanks!

#2 @nacin
13 years ago

  • Keywords commit added

#3 @ryan
13 years ago

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from new to closed

In 22867:

Only show the image edit button for image attachments. Props markoheijnen. fixes #22596

Note: See TracTickets for help on using tickets.