Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ final class WP_Interactivity_API {
* @since 6.5.0
* @since 6.6.0 The `$store_namespace` param is optional.
*
* @param string $store_namespace Optional. The unique store namespace identifier.
* @param array $state Optional. The array that will be merged with the existing state for the specified
* @param string|null $store_namespace Optional. The unique store namespace identifier.
* @param array|null $state Optional. The array that will be merged with the existing state for the specified
* store namespace.
* @return array The current state for the specified store namespace. This will be the updated state if a $state
* argument was provided.
Expand Down Expand Up @@ -311,7 +311,7 @@ public function filter_script_module_interactivity_data( array $data ): array {
*
* @since 6.6.0
*
* @param string $store_namespace Optional. The unique store namespace identifier.
* @param string|null $store_namespace Optional. The unique store namespace identifier.
*/
public function get_context( ?string $store_namespace = null ): array {
if ( null === $this->context_stack ) {
Expand Down
6 changes: 3 additions & 3 deletions src/wp-includes/interactivity-api/interactivity-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ function wp_interactivity_process_directives( string $html ): string {
* @since 6.5.0
* @since 6.6.0 The namespace can be omitted when called inside derived state getters.
*
* @param string $store_namespace The unique store namespace identifier.
* @param array $state Optional. The array that will be merged with the existing state for the specified
* @param string|null $store_namespace The unique store namespace identifier.
* @param array $state Optional. The array that will be merged with the existing state for the specified
* store namespace.
* @return array The state for the specified store namespace. This will be the updated state if a $state argument was
* provided.
Expand Down Expand Up @@ -119,7 +119,7 @@ function wp_interactivity_data_wp_context( array $context, string $store_namespa
*
* @since 6.6.0
*
* @param string $store_namespace Optional. The unique store namespace identifier.
* @param string|null $store_namespace Optional. The unique store namespace identifier.
* @return array The context for the specified store namespace.
*/
function wp_interactivity_get_context( ?string $store_namespace = null ): array {
Expand Down
Loading