[wp-trac] [WordPress Trac] #39550: Some Non-image files fail to upload after 4.7.1

WordPress Trac noreply at wordpress.org
Fri Feb 24 04:15:46 UTC 2017


#39550: Some Non-image files fail to upload after 4.7.1
-------------------------------------+------------------------
 Reporter:  greatislander            |       Owner:  joemcgill
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.7.3
Component:  Upload                   |     Version:  4.7.1
 Severity:  critical                 |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------
Changes (by joemcgill):

 * keywords:  has-patch dev-feedback => has-patch needs-testing


Comment:

 [attachment:39550.4.diff] Updates the approach from
 [attachment:39550.3.diff] to revalidate any image files that fail to pass
 the image validation step in `wp_check_filetype_and_ext()`. I've updated
 and added the tests to account for a few cases where the `upload_mimes`
 filter is in use. To run the tests, you'll need to add files in
 [attachment:39550-uploads.zip] to `tests/phpunit/data/uploads`.

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


More information about the wp-trac mailing list