Opened 4 years ago
Closed 4 years ago
#56672 closed defect (bug) (worksforme)
6.1 Beta no longer allows SVG in custom block dynamic rendering
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 6.1 | Priority: | high |
| Severity: | blocker | Version: | 6.1 |
| Component: | Editor | Keywords: | |
| Focuses: | Cc: |
Description
Testing Instructions
Steps to Reproduce
- In WP 6.0, create a custom block with dynamic HTML rendering
- In the 'render_callback' php function, return an SVG as part of the returned content.
- The SVG renders on the front end as expected.
- Switch to WP 6.1 with the beta tester plugin.
- 🐞 The SVG disappears on the front end. It is stripped from the HTML>
I imagine that there is some new escaping on the HTML returned from the 'render_callback' function.
However, there needs to be some way to insert an SVG in a dynamic PHP-rendered custom block.
I also notice the same stripping of SVG occurs when I use the new block.json render feature ("render": "file:./render.php").
Change History (3)
Note: See
TracTickets for help on using
tickets.
For whatever reason, this is now working properly in 6.1 Beta 2