Skip to content

Commit 35fc63e

Browse files
Apply suggestions from code review
Co-authored-by: Weston Ruter <westonruter@gmail.com>
1 parent 73bcbf0 commit 35fc63e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-includes/admin-bar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ function wp_admin_bar_command_palette_menu( WP_Admin_Bar $wp_admin_bar ): void {
982982
* on the front-end, the script would be loaded but remain unused on the front-end of
983983
* a website.
984984
*/
985-
$script = <<<JS
985+
$script = <<<'JS'
986986
(( shortCutLabels ) => {
987987
let userAgent = '';
988988
// 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 {
999999
commandPaletteNode.textContent = shortcutLabel;
10001000
}
10011001
})
1002-
JS;
1002+
JS;
10031003
$script .= '(' . wp_json_encode( $shortcut_labels ) . ');';
10041004
wp_add_inline_script( 'admin-bar', $script );
10051005
}

0 commit comments

Comments
 (0)