[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 04:29:22 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: Toolbar | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+----------------------------
Comment (by peterwilsoncc):
As best I can tell there are two options for running the JavaScript
fallback ASAP:
* Add the script in `$wp_admin_bar->add_node( meta.html )` -- soonest
* Add a `wp_print_inline_script_tag()` call to the
`wp_after_admin_bar_render` action -- very soon after render
In both cases, this would add a blocking script to the HTML header.
The JavaScript fallback will be required by a small number of users: Mac
OS users running their sites over CDNs that strip the User Agent header
for admin requests.
I'm inclined to accept the risk of a flash of incorrect content for those
users and reconsider in 7.0.1 depending on the number of support
requests/bug reports. It seems better than adding a blocking script the
the HTML header for an edge case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65121#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list