Duplicate + Save destroys shortcode
-
We have working shortcodes with custom CSS. Usually, when we want to create a new one for the next iteration of our events, we clone the old one and edit the newly created one.
The last time we did this (around March 2025), everything worked fine. Now, we get a critical error; we keep both wordpress and all plugins updated.
Steps to reproduce:
(1) Have an existing, working shortcode
(2) Clone it via the button
(2a) Clone one works fine
(3) Edit the picture/band in the preview and save
(3a) Editing works fine
(4) Edit the custom CSS code and save
(4a) Code is now broken in both the editing menu and the frontendThis can be reproduced by cloning an existing one, “editing” it by just pressing save.
Looking at the exported JSON, two different effects happen:
(1) >>\”<< does not get properly translated to escaped code >>\\\”<<, but only up to the stylesheet."rawdata":"{\"oxi-image-hover-col-lap\":vs.
"rawdata":"{\\\"oxi-image-hover-col-lap\\\":(2) There seems to be an insert of unneccessary non-breaking spaced:
image-hover-preview-color\":\" #FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF \"vs.
image-hover-preview-color\\\":\\\"#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF\\\",I’m happy to provide the JSON files if you let me know how.
The page I need help with: [log in to see the link]
The topic ‘Duplicate + Save destroys shortcode’ is closed to new replies.