Skip to content

Commit d26dfd2

Browse files
authored
Fix style fatal error (#4772)
1 parent 08e34fb commit d26dfd2

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*** Changelog ***
22

33
= 10.1.0 - xxxx-xx-xx =
4+
* Fix - Fix fatal error when trying to allow the `display` CSS property using the `safe_style_css` filter
45
* Fix - Remove `redirect_url` parameter from Express Checkout payment flow
56
* Fix - Adjust UI spacing of help text on express checkout theme settings page
67
* Update - Renames and migrates all Payment Request Buttons settings to Express Checkout

includes/payment-methods/class-wc-stripe-upe-payment-gateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function __construct() {
292292
add_filter(
293293
'safe_style_css',
294294
function ( $styles ) {
295-
return array_merge( $styles, [ 'display' ] );
295+
return is_array( $styles ) ? array_merge( $styles, [ 'display' ] ) : [ 'display' ];
296296
}
297297
);
298298

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
111111
== Changelog ==
112112

113113
= 10.1.0 - xxxx-xx-xx =
114+
* Fix - Fix fatal error when trying to allow the `display` CSS property using the `safe_style_css` filter
114115
* Fix - Remove `redirect_url` parameter from Express Checkout payment flow
115116
* Fix - Adjust UI spacing of help text on express checkout theme settings page
116117
* Update - Renames and migrates all Payment Request Buttons settings to Express Checkout

0 commit comments

Comments
 (0)