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

WordPress Trac noreply at wordpress.org
Wed May 6 18:36:01 UTC 2026


#65121: Command Palette: Label can be incorrect for sites served over a CDN
------------------------------------+----------------------------
 Reporter:  peterwilsoncc           |       Owner:  peterwilsoncc
     Type:  defect (bug)            |      Status:  reopened
 Priority:  normal                  |   Milestone:  7.0
Component:  Toolbar                 |     Version:  trunk
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+----------------------------

Comment (by desrosj):

 I ran this through Claude and it pointed out a few things that I've
 confirmed and tested.

 - I noticed that the PHP-based Regex has `/i` but the JavaScript pattern
 does not. Is this intentional? If not, we should probably also be case
 insensitive in the JavaScript.
 - It seems that it's possible to encounter a `TypeError` if a plugin or
 theme manipulates the admin bar and `querySelector` is unable to find the
 element.

 I've created a PR with both of these fixes.

 A few other things Claude noted that aren't blockers (in my opinion):
 - `navigator.userAgent` is being deprecated in favor of
 `navigator.userAgentData`. Not an issue today, but possibly in the future.
 - The pattern does not cover older iPads. While newer iPads report
 desktop-like UA values, older ones use `iPad`.

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


More information about the wp-trac mailing list