Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add text/plain mime type to csv importer #22209
Changes proposed in this Pull Request:
Since WP 5.0.1 there is now strict mime type checking, however csv files have in most cases text/plain mime types and not text/csv. This PR adds text/plain as an acceptable mime type for csv imports.
This is a workaround for the WP 5.0.1 bug. See https://core.trac.wordpress.org/ticket/45615
How to test the changes in this Pull Request:
The fix for this is in WordPress 5.0.3 which will drop before our next fix release https://make.wordpress.org/core/2019/01/07/wordpress-5-0-3-release-candidate/
We can leave this workaround out.