Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect mime-type on uploaded WXR documents #125

Open
pbiron opened this issue Jun 15, 2017 · 1 comment
Open

incorrect mime-type on uploaded WXR documents #125

pbiron opened this issue Jun 15, 2017 · 1 comment

Comments

@pbiron
Copy link

pbiron commented Jun 15, 2017

When a WXR document is uploaded, the mime-type of attachment post is empty.

This is a not really a bug in this plugin and is actually a result of wp_import_handle_upload() passing $overrides['test_type'] = false to wp_handle_upload(). But my hope is that the feature of this plugin that allows choosing previously uploaded WXR documents from the media library will demonstrate why the bug in wp_import_handle_upload() should be fixed in core.

@pbiron
Copy link
Author

pbiron commented Jun 15, 2017

I haven't yet created' a trac ticket for this bug in wp_import_handle_upload() because the standard importer isn't really affected by it.

However, with this plugin's feature of selecting previously uploaded WXR documents from the media library the core bug is a problem. So, if this plugin gets to the point where it is ready to supplant the standard import plugin then I'd be happy to open a trac ticket to fix this in core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant