Changes between Version 6 and Version 7 of Ticket #55996, comment 36
- Timestamp:
- 05/23/2023 02:18:46 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #55996, comment 36
v6 v7 58 58 - [https://github.com/WordPress/gutenberg/issues/49357 Shortcode escaping with double square brackets does not work anymore in FSE themes] 59 59 60 What's clear from these is that functions like `wptexturize` and `do_shortcode` are woefully inadequate andunsuitable for processing an entire page of HTML including block content. They should only be '''applied selectively to certain parts of the page''', where it makes sense to do so.60 What's clear from these is that functions like `wptexturize` and `do_shortcode` are unsuitable for processing an entire page of HTML including block content. They should only be '''applied selectively to certain parts of the page''', where it makes sense to do so. 61 61 62 62 A proper solution to this is not simple, because it involves restructuring the above duplicated and inconsistent code for applying content filters, and designing a more sophisticated logic that allows for certain blocks to opt out of them, as well as preventing the filters from being applied multiple times to the same content.