File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 allMenuItems ,
2020 adminBarLogout ,
2121 adminBarSearchForm ,
22- adminBarCommandPalette ,
2322 shortlink ,
2423 skipLink ,
2524 mobileEvent ,
3433 allMenuItems = adminBar . querySelectorAll ( '.ab-item' ) ;
3534 adminBarLogout = document . querySelector ( '#wp-admin-bar-logout a' ) ;
3635 adminBarSearchForm = document . getElementById ( 'adminbarsearch' ) ;
37- adminBarCommandPalette = document . getElementById ( 'wp-admin-bar-command-palette' ) ;
3836 shortlink = document . getElementById ( 'wp-admin-bar-get-shortlink' ) ;
3937 skipLink = adminBar . querySelector ( '.screen-reader-shortcut' ) ;
4038 mobileEvent = / M o b i l e \/ .+ S a f a r i / . test ( navigator . userAgent ) ? 'touchstart' : 'click' ;
4139
4240 // Remove nojs class after the DOM is loaded.
4341 removeClass ( adminBar , 'nojs' ) ;
4442
45- // Hide command palette if not supported.
46- if ( adminBarCommandPalette && ( ! wp . data || ! wp . data . dispatch ( 'core/commands' ) ) ) {
47- addClass ( adminBarCommandPalette , 'hidden' ) ;
48- }
49-
5043 if ( 'ontouchstart' in window ) {
5144 // Remove hover class when the user touches outside the menu items.
5245 document . body . addEventListener ( mobileEvent , function ( e ) {
You can’t perform that action at this time.
0 commit comments