[wp-trac] [WordPress Trac] #35725: Add WebP support.

WordPress Trac noreply at wordpress.org
Tue Jun 22 10:12:44 UTC 2021


#35725: Add WebP support.
-------------------------------------------------+-------------------------
 Reporter:  markoheijnen                         |       Owner:
                                                 |  adamsilverstein
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.8
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:
  tests has-dev-note                             |
-------------------------------------------------+-------------------------

Comment (by GaryJ):

 The `// WebP constants are only defined in PHP 7.1+.`
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/compat.php#L374 comment in the code] suggests that both
 `IMAGETYPE_WEBP` and `IMG_WEBP` were defined in PHP 7.1.

 According to https://www.php.net/manual/en/function.imagetypes.php and
 https://www.php.net/manual/en/image.constants.php, the `IMG_WEBP` constant
 was available at 7.0.10, so the current comment is misleading.

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


More information about the wp-trac mailing list