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.
Built from https://develop.svn.wordpress.org/trunk@57646


git-svn-id: http://core.svn.wordpress.org/trunk@57147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Pascal Birchler 2024-02-17 13:19:16 +00:00
parent 112f61146d
commit 61f8789d9f
2 changed files with 3 additions and 3 deletions

View File

@ -799,14 +799,14 @@ CSS;
echo <<<HTML
<div
class="wp-interactivity-router-loading-bar"
data-wp-interactive='{"namespace":"core/router"}'
data-wp-interactive="core/router"
data-wp-class--start-animation="state.navigation.hasStarted"
data-wp-class--finish-animation="state.navigation.hasFinished"
></div>
<div
class="screen-reader-text"
aria-live="polite"
data-wp-interactive='{"namespace":"core/router"}'
data-wp-interactive="core/router"
data-wp-text="state.navigation.message"
></div>
HTML;

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.5-beta1-57645';
$wp_version = '6.5-beta1-57646';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.