[wp-trac] [WordPress Trac] #65121: Command Palette: Label can be incorrect for sites served over a CDN

WordPress Trac noreply at wordpress.org
Fri Apr 24 01:20:04 UTC 2026


#65121: Command Palette: Label can be incorrect for sites served over a CDN
----------------------------+---------------------------
 Reporter:  peterwilsoncc   |      Owner:  peterwilsoncc
     Type:  defect (bug)    |     Status:  assigned
 Priority:  normal          |  Milestone:  7.0
Component:  Administration  |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+---------------------------
 The Command Pallet shortcut displayed in the admin bar is incorrect for
 macOs users when their site is hosted behind a CDN that removes the User-
 Agent HTTP header from requests passed through to the application server.

 This is a relatively common on CDNs as a way to increase cache hits at the
 edge.

 As Control+K does not trigger the command pallete on macOS, this can lead
 to confusion for users on such a configuration.

 Upstream Report: [https://github.com/WordPress/gutenberg/issues/77636
 GB#77636]

 **Recommended Fix**

 Recheck the User-Agent via JavaScript using `navigator.userAgent` and
 update the string used in the admin bar if it's determined to be macOS.

 **Reproduction Steps**

 1. Buy a macOS computer/use BrowserStack on macOS.
 2. In your `wp-config.php` file, add the code `$_SERVER['HTTP_USER_AGENT']
 = '';` to emulate a site behind a CDN stripping the header
 3. Visit `/wp-admin`
 4. Observe the shortcut displayed is incorrect
 5. Remove the code added to your `wp-config.php` file to avoid confusion
 later.

 See upstream issue for screenshot.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65121>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list