Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #58333, comment 59


Ignore:
Timestamp:
05/18/2023 12:24:27 PM (19 months ago)
Author:
miyarakira
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58333, comment 59

    v2 v3  
    4343Hopefully some of this is useful in getting to the bottom of the issue.
    4444
    45 I'm invested in finding a proper solution to the above issues, as I've struggled with them for a while. I wrote in [https://github.com/WordPress/gutenberg/issues/37754#issuecomment-1433931297 a comment on one of the issues]:
     45I believe a proper solution to all the above, including the vulnerability of shortcode execution in user-submitted content, is to selectively apply these content filters only as needed. As described in [https://github.com/WordPress/gutenberg/issues/37754#issuecomment-1433931297 a comment on one of the issues]:
    4646
    4747> The way it currently works, there's no way for block authors to opt-out of these filters; the most they can do is to work around or reverse their effects. A better design would be to ''not'' process the resulting HTML of a block by default, except for certain blocks where `the_content` filter makes sense. As @carlomanf said: