[wp-trac] [WordPress Trac] #35725: Add mime-type for Webp

WordPress Trac noreply at wordpress.org
Wed Mar 10 20:04:39 UTC 2021


#35725: Add mime-type for Webp
-------------------------------------------------+-------------------------
 Reporter:  markoheijnen                         |       Owner:
                                                 |  adamsilverstein
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Media                                |     Version:  3.5
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch 2nd-opinion needs-testing  |     Focuses:
  has-unit-tests                                 |
-------------------------------------------------+-------------------------

Comment (by adamsilverstein):

 @blobfolio I'm digging into this a bit further and appreciate any feedback
 you have, leaving some notes here.

 > All calls to the native getimagesize() function have been redirected to
 this wrapper to ensure that WebP dimensions are properly reported.

 I wonder if we can update `wp_getimagesize` instead of adding the
 `wp_get_image_size` function.

 > This also fixes the inconsistent use of error suppression that existed
 previously.

 The error suppression is that way for a reason as explained in the doc
 block, we need to keep that (see See
 https://core.trac.wordpress.org/ticket/42480).

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


More information about the wp-trac mailing list