Skip to content

Commit 4ccf490

Browse files
committed
fix other array_map functions
1 parent c51be52 commit 4ccf490

File tree

1 file changed

+2
-2
lines changed
  • src/plugins/global-settings/color-schemes

1 file changed

+2
-2
lines changed

src/plugins/global-settings/color-schemes/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,14 +533,14 @@ public function add_theme_compatibility( $styles, $scheme, $selectors, $mode ) {
533533
) );
534534

535535
if (isset( $selectors[ 'desktopParentHover' ] )) {
536-
$parent_hover_button_selector = implode(", ", array_map( fn( $s ) => "$s > :where(.stk-button-group) > .stk-block-button, $s > :where(.stk-container) > :where(.stk-inner-blocks) > :where(.stk-block:not(.stk-block-background)) > :where(.stk-button-group) > .stk-block-button", $parent_hover_selector ) );
536+
$parent_hover_button_selector = implode(", ", array_map( function ( $s ){ return "$s > :where(.stk-button-group) > .stk-block-button, $s > :where(.stk-container) > :where(.stk-inner-blocks) > :where(.stk-block:not(.stk-block-background)) > :where(.stk-button-group) > .stk-block-button"; }, $parent_hover_selector ) );
537537
}
538538
break;
539539
case 'container':
540540
$desktop_button_selector = $selectors[ 'desktop' ] . ' > :where(.stk-inner-blocks) > :where(.stk-block:not(.stk-block-background)) > :where(.stk-button-group) > .stk-block-button';
541541

542542
if (isset( $selectors[ 'desktopParentHover' ] )) {
543-
$parent_hover_button_selector = implode(", ", array_map( fn( $s ) => "$s > :where(.stk-inner-blocks) > :where(.stk-block:not(.stk-block-background)) > :where(.stk-button-group) > .stk-block-button", $parent_hover_selector ) );
543+
$parent_hover_button_selector = implode(", ", array_map( function ( $s ){ return "$s > :where(.stk-inner-blocks) > :where(.stk-block:not(.stk-block-background)) > :where(.stk-button-group) > .stk-block-button"; }, $parent_hover_selector ) );
544544
}
545545
break;
546546
default:

0 commit comments

Comments
 (0)