From 3b56f5bbf3f24996ce5e5253f1755e360da47c76 Mon Sep 17 00:00:00 2001 From: desrosj Date: Wed, 20 Nov 2024 15:29:19 +0000 Subject: [PATCH] Interactivity API: Remove redundant server state from Interactivity Router. Remove the workaround for a bug that was fixed in https://github.com/WordPress/gutenberg/pull/66183. Previously, if the store was not initialized with a minimal navigation object, the interactivity-router script module would error. Reviewed by desrosj. Merges [59416] to the 6.7 branch. Props jonsurrell, czapla, gziolo. Fixes #62465. Built from https://develop.svn.wordpress.org/branches/6.7@59436 git-svn-id: http://core.svn.wordpress.org/branches/6.7@58822 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../class-wp-interactivity-api.php | 13 ------------- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/wp-includes/interactivity-api/class-wp-interactivity-api.php b/wp-includes/interactivity-api/class-wp-interactivity-api.php index f71684599f2..f6764736f9e 100644 --- a/wp-includes/interactivity-api/class-wp-interactivity-api.php +++ b/wp-includes/interactivity-api/class-wp-interactivity-api.php @@ -1090,19 +1090,6 @@ private function data_wp_router_region_processor( WP_Interactivity_API_Directive if ( 'enter' === $mode && ! $this->has_processed_router_region ) { $this->has_processed_router_region = true; - /* - * Initialize the `core/router` store. - * If the store is not initialized like this with minimal - * navigation object, the interactivity-router script module - * errors. - */ - $this->state( - 'core/router', - array( - 'navigation' => new stdClass(), - ) - ); - // Enqueues as an inline style. wp_register_style( 'wp-interactivity-router-animations', false ); wp_add_inline_style( 'wp-interactivity-router-animations', $this->get_router_animation_styles() ); diff --git a/wp-includes/version.php b/wp-includes/version.php index e3ddb10a7eb..97444db705e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7.1-alpha-59435'; +$wp_version = '6.7.1-alpha-59436'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.