Make WordPress Core

Changeset 57646

Timestamp:
02/17/2024 01:17:27 PM (5 months ago)
Author:
swissspidy
Message:

Interactivity API: Use string instead of object in data-wp-interactive attribute.

The server directive processing, integrated in [57563], supports a simplified format for passing the namespace to data-wp-interactive.

Props cbravobernal, gziolo.
Fixes #60542.
See #60356.

File:
1 edited

Legend:

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

    r57563 r57646  
    800800            <div
    801801                class="wp-interactivity-router-loading-bar"
    802                 data-wp-interactive='{"namespace":"core/router"}'
     802                data-wp-interactive=
    803803                data-wp-class--start-animation="state.navigation.hasStarted"
    804804                data-wp-class--finish-animation="state.navigation.hasFinished"
     
    807807                class="screen-reader-text"
    808808                aria-live="polite"
    809                 data-wp-interactive='{"namespace":"core/router"}'
     809                data-wp-interactive=
    810810                data-wp-text="state.navigation.message"
    811811            ></div>
Note: See TracChangeset for help on using the changeset viewer.