mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-08 01:17:59 +01:00
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
This commit is contained in:
parent
13d7e96210
commit
3b56f5bbf3
@ -1090,19 +1090,6 @@ HTML;
|
||||
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() );
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user