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

WordPress Trac noreply at wordpress.org
Tue Mar 30 10:07:11 UTC 2021


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

Comment (by spacedmonkey):

 There are also 3 of these

 {{{#!php
 // phpcs:ignore
 PHPCompatibility.Constants.NewConstants.imagetype_webpFound
 }}}


 We could just add these to `phpcs.xml.dist` file. So

 {{{#!xml
 <rule ref="PHPCompatibility.Constants.NewConstants.imagetype_webpFound">
    <exclude-pattern>/src/wp-admin/includes/image\.php</exclude-pattern>
    <exclude-pattern>/src/wp-includes/compat\.php</exclude-pattern>
    <exclude-pattern>/src/wp-includes/media\.php</exclude-pattern>
 </rule>
 }}}

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


More information about the wp-trac mailing list