Skip to content

Commit 18c62df

Browse files
cbravobernalgziolo
authored andcommitted
Refactor to use string instead of an object (#59030)
Co-authored-by: c4rl0sbr4v0 <cbravobernal@git.wordpress.org> Co-authored-by: gziolo <gziolo@git.wordpress.org>
1 parent e53ba3b commit 18c62df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/compat/wordpress-6.5/interactivity-api/class-wp-interactivity-api.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -800,14 +800,14 @@ public function print_router_loading_and_screen_reader_markup() {
800800
echo <<<HTML
801801
<div
802802
class="wp-interactivity-router-loading-bar"
803-
data-wp-interactive='{"namespace":"core/router"}'
803+
data-wp-interactive="core/router"
804804
data-wp-class--start-animation="state.navigation.hasStarted"
805805
data-wp-class--finish-animation="state.navigation.hasFinished"
806806
></div>
807807
<div
808808
class="screen-reader-text"
809809
aria-live="polite"
810-
data-wp-interactive='{"namespace":"core/router"}'
810+
data-wp-interactive="core/router"
811811
data-wp-text="state.navigation.message"
812812
></div>
813813
HTML;

packages/e2e-tests/plugins/interactive-blocks/router-navigate/render.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
?>
1919

2020
<div
21-
data-wp-interactive='{ "namespace": "router" }'
21+
data-wp-interactive="router"
2222
data-wp-router-region="region-1"
2323
>
2424
<h2 data-testid="title"><?php echo $attributes['title']; ?></h2>

0 commit comments

Comments
 (0)