Skip to content

Commit 5986229

Browse files
Update isset() with array_key_exists()
Co-authored-by: Weston Ruter <[email protected]>
1 parent 3968abd commit 5986229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/ReaderThemeSupportFeatures.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ private function print_spacing_sizes_custom_properties() {
517517
*/
518518
$is_wp_generating_spacing_sizes = $spacing[ self::KEY_DEFAULT_SPACING_SIZES ] ?? false;
519519

520-
if ( isset( $spacing_scale[ self::KEY_STEPS ] ) ) {
520+
if ( array_key_exists( self::KEY_STEPS, $spacing_scale ) ) {
521521
$is_wp_generating_spacing_sizes = 0 !== $spacing_scale[ self::KEY_STEPS ];
522522
}
523523

0 commit comments

Comments
 (0)