Prerequisites
Description
In version v2.6.0 of the One Click Demo Import plugin (OCDI) we followed the steps of the WP importer (v0.7+) and properly wp_slashed the post meta data before importing. We are using a fork of the "new WP importer" as the content importer.
Your plugin hooks to one of the importer's filters: wxr_importer.pre_process.post_meta in the Compatibility class and this hook uses the wp_slash on already wp_slashed data which breaks the import.
We've released OCDI version 2.6.1, with a hotfix, which removes the above filter hook, before executing the import. This is probably not an ideal solution.
Would it be possible, to add a check to the above hook function in your Compatibility class and skip the additional wp_slash on the post meta value if our plugin is in use? Something similar to what you did with the WP importer v0.7 here: https://github.com/elementor/elementor/pull/11484/files , but in the on_wxr_importer_pre_process_post_meta method.
Steps to reproduce
- Install and activate Elementor and One Click Demo Import (v2.6.0) plugins (version 2.6.1 already works OK with Elementor, because of the not ideal hotfix).
- Try to import some Elementor content by going to Appearance -> Import Demo Data and uploading an XML file with Elementor pages exported from WP (default WP export functionality).
- The imported content will be broken after the import is finished
Isolating the problem
Environment
Not an environment-specific issue (it's a compatibility issue).
Thank you for your time! :)
Prerequisites
Description
In version v2.6.0 of the One Click Demo Import plugin (OCDI) we followed the steps of the WP importer (v0.7+) and properly
wp_slashedthe post meta data before importing. We are using a fork of the "new WP importer" as the content importer.Your plugin hooks to one of the importer's filters:
wxr_importer.pre_process.post_metain the Compatibility class and this hook uses thewp_slashon alreadywp_slashed data which breaks the import.We've released OCDI version 2.6.1, with a hotfix, which removes the above filter hook, before executing the import. This is probably not an ideal solution.
Would it be possible, to add a check to the above hook function in your Compatibility class and skip the additional
wp_slashon the post meta value if our plugin is in use? Something similar to what you did with the WP importer v0.7 here: https://github.com/elementor/elementor/pull/11484/files , but in theon_wxr_importer_pre_process_post_metamethod.Steps to reproduce
Isolating the problem
Environment
Not an environment-specific issue (it's a compatibility issue).
Thank you for your time! :)