Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#27789 closed defect (bug) (duplicate)

WebP, WebM missing from wp-includes files

Reported by: doug-simmons's profile Doug Simmons Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.8.2
Component: Media Keywords:
Focuses: Cc:

Description

Yeah, hi Wordpress devs. So on my WebP demo site, in order to post images by email I must, after every security update, go into wp-includes and grep -rl for all files containing image formats and add WebP (also WebM) into the relevant php files in order to get partial functionality with WebP.

It's tedious and deters me from updating because I have to do it over by hand each time in order not to break anything. I still haven't figured out how to get Wordpress to detect the WebP dimensions or resize them. What do I do for that, try and google down what to put in this getid3.php file? C'mon.

http://mobilitydigest.com/simmons/functionsdotphp.png

Whereas it deters people in my shoes from updating, while minor, one might argue that that is a security risk worth addressing if only to mitigate security risks when it would, in this case, cost you very little time and save me oh so much.

Given that this is the most powerful format in the world and can blow your bandwidth cap clean off, there's one question you need to ask yourself: Is there any good reason why you haven't yet bothered to add these two formats?

I can understand Mozilla not adding WebP to Firefox (well, no, I can't understand, it's ridiculous), but it makes zero sense that you guys haven't. I'm guessing it's an oversight. Get on the right side of history and fix it. Please.

Doug Simmons

Change History (1)

#1 in reply to: ↑ description @SergeyBiryukov
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Replying to Doug Simmons:

It's tedious and deters me from updating because I have to do it over by hand each time in order not to break anything.

There's no need to patch core to add WebP to get_allowed_mime_types() and wp_ext2type() functions, you can use upload_mimes and ext2type filters for that.

This is a duplicate of #24718.

Note: See TracTickets for help on using tickets.