diff --git a/lib/compat/wordpress-5.9/class-wp-theme-json-5-9.php b/lib/compat/wordpress-5.9/class-wp-theme-json-5-9.php index b152501a8352f7..8d02535c0bf273 100644 --- a/lib/compat/wordpress-5.9/class-wp-theme-json-5-9.php +++ b/lib/compat/wordpress-5.9/class-wp-theme-json-5-9.php @@ -620,7 +620,7 @@ public function get_settings() { * @return string Stylesheet. */ public function get_stylesheet( $types = array( 'variables', 'styles', 'presets' ), $origins = null ) { - if ( $origins === null ) { + if ( null === $origins ) { $origins = static::VALID_ORIGINS; } @@ -1059,7 +1059,7 @@ protected static function get_settings_values_by_slug( $settings, $preset_metada * @return array Array of presets where the key and value are both the slug. */ protected static function get_settings_slugs( $settings, $preset_metadata, $origins = null ) { - if ( $origins === null ) { + if ( null === $origins ) { $origins = static::VALID_ORIGINS; } @@ -1225,7 +1225,7 @@ protected static function flatten_tree( $tree, $prefix = '', $token = '--' ) { * @return array Returns the modified $declarations. */ protected static function compute_style_properties( $styles, $settings = array(), $properties = null ) { - if ( $properties === null ) { + if ( null === $properties ) { $properties = static::PROPERTIES_METADATA; }