Changeset 61979 for trunk/src/wp-includes/admin-bar.php
- Timestamp:
- 03/12/2026 05:23:14 AM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/admin-bar.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/admin-bar.php
r61912 r61979 946 946 */ 947 947 function wp_admin_bar_command_palette_menu( WP_Admin_Bar $wp_admin_bar ): void { 948 if ( ! is_admin() ) {948 if ( ! is_admin() || ! wp_script_is( 'wp-core-commands', 'enqueued' ) ) { 949 949 return; 950 950 } … … 955 955 : _x( 'Ctrl+K', 'keyboard shortcut to open the command palette' ); 956 956 $title = sprintf( 957 '<span class="ab- label"><kbd>%s</kbd><span class="screen-reader-text"> %s</span></span>',957 '<span class="ab-icon" aria-hidden="true"></span><span class="ab-label"><kbd>%s</kbd><span class="screen-reader-text"> %s</span></span>', 958 958 $shortcut_label, 959 959 /* translators: Hidden accessibility text. */
Note: See TracChangeset
for help on using the changeset viewer.