[wp-trac] [WordPress Trac] #30377: wp_check_filetype is broken when checking urls with parameters

WordPress Trac noreply at wordpress.org
Mon Mar 7 14:36:00 UTC 2022


#30377: wp_check_filetype is broken when checking urls with parameters
-------------------------------------------------+-------------------------
 Reporter:  supercleanse                         |       Owner:
                                                 |  johnbillion
     Type:  enhancement                          |      Status:  reviewing
 Priority:  normal                               |   Milestone:  6.0
Component:  Media                                |     Version:  4.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch dev-feedback has-unit-     |     Focuses:
  tests needs-testing                            |
-------------------------------------------------+-------------------------

Comment (by audrasjb):

 > One test fails: http://example.mp3 incorrectly results in an extension
 of mp3, but this isn't strictly related to this change and AFAIK none of
 the extensions in wp_get_mime_types() are valid TLDs anyway.

 👆 this is still an issue with the current PR. @johnbillion should we just
 remove the failing test?

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


More information about the wp-trac mailing list