We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbd527f commit 1f988f8Copy full SHA for 1f988f8
1 file changed
src/wp-includes/admin-bar.php
@@ -966,7 +966,7 @@ function wp_admin_bar_command_palette_menu( WP_Admin_Bar $wp_admin_bar ): void {
966
'href' => '#',
967
'meta' => array(
968
'class' => 'hide-if-no-js',
969
- 'onclick' => 'if ( window.wp && wp.data && wp.data.dispatch ) { var store = wp.data.dispatch( "core/commands" ); if ( store && typeof store.open === "function" ) { store.open(); } } return false;',
+ 'onclick' => 'wp.data.dispatch( "core/commands" ).open(); return false;',
970
),
971
)
972
);
0 commit comments