Skip to content

Commit

Permalink
chore: fix return type in WP_Duotone_Gutenberg::get_selector() (#66695)
Browse files Browse the repository at this point in the history
Co-authored-by: justlevine <[email protected]>
Co-authored-by: gziolo <[email protected]>
  • Loading branch information
3 people authored Dec 23, 2024
1 parent 59683c1 commit e354e49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/class-wp-duotone-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ private static function get_global_styles_presets( $sources ) {
*
* @param string $block_name The block name.
*
* @return string The CSS selector or null if there is no support.
* @return ?string The CSS selector or null if there is no support.
*/
private static function get_selector( $block_name ) {
$block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block_name );
Expand Down Expand Up @@ -669,6 +669,8 @@ private static function get_selector( $block_name ) {
// Regular filter.duotone support uses filter.duotone selectors with fallbacks.
return wp_get_block_css_selector( $block_type, array( 'filter', 'duotone' ), true );
}

return null;
}

/**
Expand Down

1 comment on commit e354e49

@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 e354e49.
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/12464323129
📝 Reported issues:

Please sign in to comment.