Skip to content

Commit

Permalink
Refactor to use string instead of an object (#59030)
Browse files Browse the repository at this point in the history
Co-authored-by: c4rl0sbr4v0 <cbravobernal@git.wordpress.org>
Co-authored-by: gziolo <gziolo@git.wordpress.org>
  • Loading branch information
3 people authored and youknowriad committed Feb 20, 2024
1 parent 2fc218e commit f060994
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -800,14 +800,14 @@ public function print_router_loading_and_screen_reader_markup() {
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
?>

<div
data-wp-interactive='{ "namespace": "router" }'
data-wp-interactive="router"
data-wp-router-region="region-1"
>
<h2 data-testid="title"><?php echo $attributes['title']; ?></h2>
Expand Down

0 comments on commit f060994

Please sign in to comment.