Skip to content

Commit 447a6a6

Browse files
committed
Shortcut as one word in all instances.
1 parent 35fc63e commit 447a6a6

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
@@ -983,7 +983,7 @@ function wp_admin_bar_command_palette_menu( WP_Admin_Bar $wp_admin_bar ): void {
983983
* a website.
984984
*/
985985
$script = <<<'JS'
986-
(( shortCutLabels ) => {
986+
(( shortcutLabels ) => {
987987
let userAgent = '';
988988
// Assigning agent may error if the HTTP header is blocked at the browser level.
989989
try {
@@ -993,7 +993,7 @@ function wp_admin_bar_command_palette_menu( WP_Admin_Bar $wp_admin_bar ): void {
993993
return;
994994
}
995995
const isAppleOS = /Macintosh|Mac OS X|Mac_PowerPC/i.test( userAgent );
996-
const shortcutLabel = isAppleOS ? shortCutLabels.appleOS : shortCutLabels.default;
996+
const shortcutLabel = isAppleOS ? shortcutLabels.appleOS : shortcutLabels.default;
997997
const commandPaletteNode = document.querySelector( '#wp-admin-bar-command-palette .ab-label kbd' );
998998
if ( commandPaletteNode ) {
999999
commandPaletteNode.textContent = shortcutLabel;

0 commit comments

Comments
 (0)