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

WordPress Trac noreply at wordpress.org
Fri Oct 23 18:07:58 UTC 2015


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

Comment (by layotte):

 Replying to [comment:27 helen]:
 > Changing to enhancement, as `wp_check_filetype()` was never meant for
 URLs and the solution in this case is to introduce something else that
 does work for URLs.

 The wp_check_filetype() function is called several times in wp-
 includes/media.php. Including the Audio shortcode (which is where I ran
 into this bug). I believe this should be considered a bug. Especially if
 the function was never meant to be used for URLs.

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


More information about the wp-trac mailing list