[wp-trac] [WordPress Trac] #58366: Shortcode Support Regained but Content Filters are messing with Shortcode HTML
WordPress Trac
noreply at wordpress.org
Mon May 22 13:45:28 UTC 2023
#58366: Shortcode Support Regained but Content Filters are messing with Shortcode
HTML
---------------------------+------------------------------
Reporter: domainsupport | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 6.2.2
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by aflijja):
a temp solution for me
patch "wp-includes/block-template.php"
with 2 lines
{{{
$content = str_replace( ']]>', ']]>', $content );
$content = str_replace( '<p>', '', $content );
$content = str_replace( '</p>', '', $content );
}}}
the second problem is new line generation inside script tag
i changed the single quote ' to backtik `
so accidental multiline script work
{{{
prevArrow: `
<div class="prev"><i class="fas fa-chevron-left"></i></div>
`,
}}}
but this is temporary solution for me
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58366#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list