• I just exported a Shortcoder script and imported it on another site. When I edited it, I discovered that the opening and closing <script> tags had been removed! I am a “super admin” on this WordPress multisite installation.

    Is this a known issue? Any workaround, besides editing the shortcode and adding the <script> tags back??

    • This topic was modified 3 years, 12 months ago by martin4nbi. Reason: Fix title
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author vaakash

    (@vaakash)

    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.

    Plugin Author vaakash

    (@vaakash)

    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

    Thread Starter martin4nbi

    (@martin4nbi)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Export/import strips opening/closing “script” tag!’ is closed to new replies.