Skip to content

Commit fa9e82c

Browse files
Update src/wp-includes/admin-bar.php
Co-authored-by: Weston Ruter <westonruter@gmail.com>
1 parent 1e06c9f commit fa9e82c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/admin-bar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ function wp_admin_bar_command_palette_menu( WP_Admin_Bar $wp_admin_bar ): void {
989989
'meta' => array(
990990
'class' => 'hide-if-no-js',
991991
'onclick' => 'wp.data.dispatch( "core/commands" ).open(); return false;',
992-
'html' => "<script>{$script}</script>",
992+
'html' => wp_get_inline_script_tag( $script ),
993993
),
994994
)
995995
);

0 commit comments

Comments
 (0)