File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments