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 ); 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.