Make WordPress Core

Changeset 61653


Ignore:
Timestamp:
02/16/2026 09:02:34 PM (6 weeks ago)
Author:
luisherranz
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/interactivity-api/class-wp-interactivity-api.php

    r61637 r61653  
    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"
Note: See TracChangeset for help on using the changeset viewer.