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

WordPress Trac noreply at wordpress.org
Fri Feb 19 20:12:06 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 blobfolio):

 Hey @adamsilverstein

 Looks like there's a small typo in the diff for `src/wp-
 admin/includes/media.php`:


 {{{
 $allowed_extensions = array( 'jpg', 'jpeg', 'jpe', 'png', 'gif', 'png' );
 }}}


 ("png" was added to the end instead of "webp".)

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


More information about the wp-trac mailing list