crashes out in WordPress Importer
-
I encountered an error when using the WordPress Importer to suck in some content from an XML file. (https://www.ads-software.com/extend/plugins/wordpress-importer/)
On line 64 of class.MCB.php…
if(!wp_is_post_revision($post_id) && !wp_is_post_autosave($post_id) && (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest')) :
…?the $_SERVER[‘HTTP_X_REQUESTED_WITH’] doesn’t make sense. You can’t evaluate a variable that isn’t set.I imagine it should read…
if(!wp_is_post_revision($post_id) && !wp_is_post_autosave($post_id) && (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || $_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest')) :
Thank you for a great tool, I’ve built countless sites with it.
https://www.ads-software.com/extend/plugins/multiple-content-blocks/
- The topic ‘crashes out in WordPress Importer’ is closed to new replies.