From e5b9cdf515b0083ead708567bba24be0531ed340 Mon Sep 17 00:00:00 2001 From: Alex S <17275120+AlexGStapleton@users.noreply.github.com> Date: Wed, 23 Mar 2022 00:05:23 +1000 Subject: [PATCH 1/2] add_css: Stricker `px` exclusion --- inc/css-builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/css-builder.php b/inc/css-builder.php index 681c4edf0..45da5a439 100644 --- a/inc/css-builder.php +++ b/inc/css-builder.php @@ -30,7 +30,7 @@ public function add_css( $selector, $attributes, $resolution = 1920 ) { if ( ! strlen( (string) $v[ $i ] ) ) continue; $attribute_string[] = wp_strip_all_tags( $k ) . ':' . wp_strip_all_tags( $v[ $i ] ); } - } elseif ( ! strlen( (string) $v ) || $v == 'px' ) { + } elseif ( ! strlen( (string) $v ) || $v === 'px' ) { continue; } else { $attribute_string[] = wp_strip_all_tags( $k ) . ':' . wp_strip_all_tags( $v ); From fe3c38ca3f6e786ab46fcfd0a1a5f975729465c4 Mon Sep 17 00:00:00 2001 From: Andrew Misplon Date: Wed, 23 Mar 2022 15:03:06 +0200 Subject: [PATCH 2/2] Updated changelog --- readme.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.txt b/readme.txt index 48ae5e3c6..6e647b01c 100644 --- a/readme.txt +++ b/readme.txt @@ -107,6 +107,9 @@ SiteOrigin Premium includes access to our professional email support service, pe == Changelog == += 2.16.7 - 23 March 2022 = +* Improved empty CSS rule check to avoid potential edge cases. + = 2.16.6 - 21 March 2022 = * Prevented CSS properties outputting with only `px` set as the value. * WPML: Refined sidebar emulator language path removal.