Fix script tag handling for inner blocks in the cart (#51498)
* Avoid parsing scripts when dealing with inner blocks—return as-is * changelog
This commit is contained in:
parent
bf549e6d8f
commit
c5ed90535f
|
@ -179,6 +179,11 @@ const renderInnerBlocks = ( {
|
|||
return null;
|
||||
}
|
||||
|
||||
// Return scripts without manipulation.
|
||||
if ( parsedElement?.type === 'script' ) {
|
||||
return parsedElement;
|
||||
}
|
||||
|
||||
const renderedChildren = node.childNodes.length
|
||||
? renderInnerBlocks( {
|
||||
block,
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Fix script tag handling for inner blocks in the cart
|
Loading…
Reference in New Issue