Skip to content

Commit c0baa82

Browse files
Interactivity API: Remove redundant server state from Interactivity Router
Remove the workaround for a bug that was fixed in WordPress/gutenberg#66183. Previously, if the store was not initialized with a minimal navigation object, the interactivity-router script module would error. Props jonsurrell, czapla, gziolo. Fixes 62465#. Built from https://develop.svn.wordpress.org/trunk@59416 git-svn-id: http://core.svn.wordpress.org/trunk@58802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent a7dda35 commit c0baa82

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,19 +1090,6 @@ private function data_wp_router_region_processor( WP_Interactivity_API_Directive
10901090
if ( 'enter' === $mode && ! $this->has_processed_router_region ) {
10911091
$this->has_processed_router_region = true;
10921092

1093-
/*
1094-
* Initialize the `core/router` store.
1095-
* If the store is not initialized like this with minimal
1096-
* navigation object, the interactivity-router script module
1097-
* errors.
1098-
*/
1099-
$this->state(
1100-
'core/router',
1101-
array(
1102-
'navigation' => new stdClass(),
1103-
)
1104-
);
1105-
11061093
// Enqueues as an inline style.
11071094
wp_register_style( 'wp-interactivity-router-animations', false );
11081095
wp_add_inline_style( 'wp-interactivity-router-animations', $this->get_router_animation_styles() );

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '6.8-alpha-59415';
19+
$wp_version = '6.8-alpha-59416';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)