Skip to content

Commit e35f13b

Browse files
authored
Revert JS edits
1 parent 56b8095 commit e35f13b

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/js/_enqueues/lib/admin-bar.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
allMenuItems,
2020
adminBarLogout,
2121
adminBarSearchForm,
22-
adminBarCommandPalette,
2322
shortlink,
2423
skipLink,
2524
mobileEvent,
@@ -34,19 +33,13 @@
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 = /Mobile\/.+Safari/.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 ) {

0 commit comments

Comments
 (0)