Skip to content

Commit 0b8bc64

Browse files
committed
Interactivity API: Use the private router store for the loading bar markup.
Update the `data-wp-interactive` directive in the loading bar from `core/router` to `core/router/private` so that internal navigation state properties (`hasStarted`, `hasFinished`) are not exposed as part of the public `core/router` store API. Props westonruter. Fixes #64647. git-svn-id: https://develop.svn.wordpress.org/trunk@61653 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5600a33 commit 0b8bc64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ public function print_router_markup() {
12901290
echo <<<HTML
12911291
<div
12921292
class="wp-interactivity-router-loading-bar"
1293-
data-wp-interactive="core/router"
1293+
data-wp-interactive="core/router/private"
12941294
data-wp-class--start-animation="state.navigation.hasStarted"
12951295
data-wp-class--finish-animation="state.navigation.hasFinished"
12961296
></div>

0 commit comments

Comments
 (0)