Skip to content
Closed
Prev Previous commit
Use !== null equality checks once more
Co-authored-by: Felix Arntz <[email protected]>
  • Loading branch information
ockham and felixarntz authored Oct 12, 2023
commit 17ca37ae0a952f1dbdbac63d40234311652136da
2 changes: 1 addition & 1 deletion src/wp-includes/class-wp-block-patterns-registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private function prepare_content( $pattern, $hooked_blocks ) {
$before_block_visitor = make_before_block_visitor( $hooked_blocks, $pattern );
$after_block_visitor = make_after_block_visitor( $hooked_blocks, $pattern );
}
if ( ! is_null( $before_block_visitor ) || ! is_null( $after_block_visitor ) ) {
if ( null !== $before_block_visitor || null !== $after_block_visitor ) {
$blocks = parse_blocks( $content );
$content = traverse_and_serialize_blocks( $blocks, $before_block_visitor, $after_block_visitor );
}
Expand Down