We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f98766 commit 6190673Copy full SHA for 6190673
src/wp-includes/script-loader.php
@@ -3487,7 +3487,7 @@ function wp_enqueue_command_palette_assets() {
3487
if ( $menu ) {
3488
$menu_commands = array();
3489
foreach ( $menu as $menu_item ) {
3490
- if ( empty( $menu_item[0] ) || ! empty( $menu_item[1] ) && ! current_user_can( $menu_item[1] ) ) {
+ if ( empty( $menu_item[0] ) || ! is_string( $menu_item[0] ) || ! empty( $menu_item[1] ) && ! current_user_can( $menu_item[1] ) ) {
3491
continue;
3492
}
3493
0 commit comments