Skip to content

Commit

Permalink
Update isset() with array_key_exists()
Browse files Browse the repository at this point in the history
Co-authored-by: Weston Ruter <[email protected]>
  • Loading branch information
thelovekesh and westonruter authored Jun 6, 2024
1 parent 3968abd commit 5986229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReaderThemeSupportFeatures.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ private function print_spacing_sizes_custom_properties() {
*/
$is_wp_generating_spacing_sizes = $spacing[ self::KEY_DEFAULT_SPACING_SIZES ] ?? false;

if ( isset( $spacing_scale[ self::KEY_STEPS ] ) ) {
if ( array_key_exists( self::KEY_STEPS, $spacing_scale ) ) {
$is_wp_generating_spacing_sizes = 0 !== $spacing_scale[ self::KEY_STEPS ];
}

Expand Down

0 comments on commit 5986229

Please sign in to comment.