Skip to content

Commit 8cd40d7

Browse files
committed
chore: remove always-true if() from WP_Interactvity_API::config()
1 parent f8fce1d commit 8cd40d7

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/wp-includes/interactivity-api/class-wp-interactivity-api.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,11 @@ public function config( string $store_namespace, array $config = array() ): arra
184184
if ( ! isset( $this->config_data[ $store_namespace ] ) ) {
185185
$this->config_data[ $store_namespace ] = array();
186186
}
187-
if ( is_array( $config ) ) {
188-
$this->config_data[ $store_namespace ] = array_replace_recursive(
189-
$this->config_data[ $store_namespace ],
190-
$config
191-
);
192-
}
187+
188+
$this->config_data[ $store_namespace ] = array_replace_recursive(
189+
$this->config_data[ $store_namespace ],
190+
$config
191+
);
193192
return $this->config_data[ $store_namespace ];
194193
}
195194

0 commit comments

Comments
 (0)