[wp-trac] [WordPress Trac] #63302: SVG images can't be uploaded anymore due to a resizing issue

WordPress Trac noreply at wordpress.org
Fri Apr 18 05:21:59 UTC 2025


#63302: SVG images can't be uploaded anymore due to a resizing issue
---------------------------------------+---------------------
 Reporter:  audrasjb                   |       Owner:  (none)
     Type:  defect (bug)               |      Status:  new
 Priority:  normal                     |   Milestone:  6.8.1
Component:  Editor                     |     Version:  6.8
 Severity:  normal                     |  Resolution:
 Keywords:  has-screenshots has-patch  |     Focuses:
---------------------------------------+---------------------
Changes (by dilipbheda):

 * keywords:  has-screenshots => has-screenshots has-patch


Comment:

 It seems that `wp_get_default_extension_for_mime_type()` ignores the
 `upload_mimes` filter because it uses `wp_get_mime_types()` directly,
 instead of `get_allowed_mime_types()`, which would include the values
 modified by the `upload_mimes` filter.

 I've fixed it with the attached patch.

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


More information about the wp-trac mailing list