Make WordPress Core

Changes between Version 6 and Version 7 of Ticket #55996, comment 36


Ignore:
Timestamp:
05/23/2023 02:18:46 PM (3 years ago)
Author:
miyarakira
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55996, comment 36

    v6 v7  
    5858- [https://github.com/WordPress/gutenberg/issues/49357 Shortcode escaping with double square brackets does not work anymore in FSE themes]
    5959
    60 What's clear from these is that functions like `wptexturize` and `do_shortcode` are woefully inadequate and 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.
     60What'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.
    6161
    6262A 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.