Skip to content

Commit

Permalink
Use str_contains in Layout support as per Core version (#58251)
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave authored Jan 30, 2024
1 parent 69f00ae commit 40ec1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/block-supports/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ function gutenberg_render_layout_support_flag( $block_content, $block ) {
}

$class_attribute = $processor->get_attribute( 'class' );
if ( is_string( $class_attribute ) && false !== strpos( $class_attribute, $inner_block_wrapper_classes ) ) {
if ( is_string( $class_attribute ) && str_contains( $class_attribute, $inner_block_wrapper_classes ) ) {
break;
}
} while ( $processor->next_tag() );
Expand Down

1 comment on commit 40ec1e3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 40ec1e3.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7709233355
📝 Reported issues:

Please sign in to comment.