Browser: Chrome 110
OS: macOS
Video: https://demo.pschwind.de/bricksbug/bricks-svg-and-post-content-template-bug.mp4
Steps to reproduce:
- Enable code execution
- Edit or create a Bricks post
- Add some elements, e.g. basic text elements
- Add an SVG element
- Set the SVG element to
codeand use this empty SVG:<svg xmlns="http://www.w3.org/2000/svg"></svg>(any other SVG should work as well) - Save the page and refresh it. The editor will load correctly.
- Create a new template
- Insert a “Post Content” element into the template
- Set the template condition to “Entire website”
- Save the template
- Refresh the builder for the first Bricks post you created
Expected behavior:
The Bricks editor functions normally.
Actual behavior:
All elements are shown twice!
Additional notes:
When you remove the SVG and refresh the editor, the bug disappears and all the elements are only shown once (see video).
I reproduced the error on a clean WP + Bricks installation (see video).

