Hi @martin4nbi,
Sorry for the super late reply.
I verified the export/import on my site.
The script tag was retained both in the exported “.xml” file and even after importing it.
I guess some security related plugin is stripping things off on your side.
Please confirm if the issue reoccurs if possible.
Thanks,
Aakash
I am having this same issue on my multisite. I wish to export and import some shortcode XML between sites in the multisite. When I export, I see the script tag in the XML. However, once imported, the tag is gone.
Thinking this might be an issue with a plugin, I tried the same on a minimal, local, multisite install and I get the same issue.
Wordpress 5.8 (although I was getting this problem prior, also).
Thanks.
Hi @regnskygge,
I revisited this case in WP 5.8
I’m not able to reproduce this issue.
Please see image below.
View post on imgur.com
My guess is that there is some security related plugin filtering out script tags. Shortcoder does not manipulate the export results. It is native to WordPress defaults and should be same as exporting posts/pages.
Please do try inserting a script tag in a post/page and try to export it. If it is stripped off then there is someother plugin coming inbetween.
Thanks,
Aakash
Hello Aakash,
Are you testing this on a WordPress *multisite* installation? I think that the security restrictions on multisite are different than on single site.