Bug in php/class-delivery.php breaks certain blocks by forgetting to re-slash
-
Hello,
There is a bug in version 3.0.4, line 256 in php/class-delivery.php
if ( empty( $cloudinary_urls ) ) { return $content; }
The problem is that at line 249, this content has been run through
wp_unslash
. This code should beif ( empty( $cloudinary_urls ) ) { if ( $unslashed ) { $content = wp_slash( $content ); } return $content; }
– like for then normal function return.
With this bug, if the early exit is done, any block that uses the
serialize_block_attributes
function to ensure the block attributes are safe, will be corrupted if any attributes were protected by slashing and there are no cloudinary resources on the page. This will e.g. affect ACF Pro blocks and probably more.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Bug in php/class-delivery.php breaks certain blocks by forgetting to re-slash’ is closed to new replies.