[wp-trac] [WordPress Trac] #53475: No error shown on uploading a WebP image when the server doesn't support editing it

WordPress Trac noreply at wordpress.org
Tue Jun 22 15:53:32 UTC 2021


#53475: No error shown on uploading a WebP image when the server doesn't support
editing it
--------------------------+---------------------
 Reporter:  azaozz        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.8
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+---------------------

Comment (by adamsilverstein):

 In [attachment:"53475.diff"]:
 * Improve `get_allowed_mime_types`: only enable WebP when the server
 supports it.

 Looking at this now I can move the logic into a more general function as
 @azaozz suggested, I'll update the patch.

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


More information about the wp-trac mailing list