We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73bcbf0 commit 35fc63eCopy full SHA for 35fc63e
1 file changed
src/wp-includes/admin-bar.php
@@ -982,7 +982,7 @@ function wp_admin_bar_command_palette_menu( WP_Admin_Bar $wp_admin_bar ): void {
982
* on the front-end, the script would be loaded but remain unused on the front-end of
983
* a website.
984
*/
985
- $script = <<<JS
+ $script = <<<'JS'
986
(( shortCutLabels ) => {
987
let userAgent = '';
988
// Assigning agent may error if the HTTP header is blocked at the browser level.
@@ -999,7 +999,7 @@ function wp_admin_bar_command_palette_menu( WP_Admin_Bar $wp_admin_bar ): void {
999
commandPaletteNode.textContent = shortcutLabel;
1000
}
1001
})
1002
-JS;
+ JS;
1003
$script .= '(' . wp_json_encode( $shortcut_labels ) . ');';
1004
wp_add_inline_script( 'admin-bar', $script );
1005
0 commit comments