Duplicating a page breaks serialised block markup code
-
I use some custom blocks and either the blocks or WordPress serialise some characters or data. Everything works fine in terms of the blocks and copy/pasting them from one page to another. However, If I use this plugin and duplicate a page it strips the backslash added to characters.
Here is a simplified blocks markup before duplicate page
wp:meta-box/text-with-icon -block{“id”:”mb-block-9a7d60af-dfa9-44b5-8d3c-cff673bb74cf”,”font_attr”:{“line_height”:”\u002d\u002dline-height-4xs”}}}
Here is the markup after duplicate page
wp:meta-box/text-with-icon -block{“id”:”mb-block-9a7d60af-dfa9-44b5-8d3c-cff673bb74cf”,”font_attr”:{“line_height”:”u002du002dline-height-4xs”}}}
You’ll notice that the line_height markup will no longer deserialise as –line-height-4xs but rather u002du002dline-height-4xs because the duplicate page process stripped the slashes from the block markup.thanks
You must be logged in to reply to this topic.