We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00ac218 commit c301cebCopy full SHA for c301ceb
1 file changed
src/wp-includes/admin-bar.php
@@ -971,7 +971,7 @@ function wp_admin_bar_command_palette_menu( WP_Admin_Bar $wp_admin_bar ): void {
971
*/
972
$function = <<<'JS'
973
( applePattern, appleOSLabel ) => {
974
- if ( ( new RegExp( applePattern ) ).test( navigator.userAgent ) ) {
+ if ( ( new RegExp( applePattern, 'i' ) ).test( navigator.userAgent ) ) {
975
document.querySelector( '#wp-admin-bar-command-palette .ab-label kbd' ).textContent = appleOSLabel;
976
}
977
0 commit comments