* Skip extensions in navigation flyout menu

* Check if menuId is set
This commit is contained in:
Joshua T Flowers 2021-02-04 21:04:16 -05:00 committed by GitHub
parent 50304d683c
commit eabcb877c4
1 changed files with 5 additions and 0 deletions

View File

@ -294,6 +294,11 @@ class CoreMenu {
}
foreach( $top_level_items as $item ) {
// Skip extensions.
if ( ! isset( $item['menuId'] ) || $item['menuId'] === 'plugins' ) {
continue;
}
// Skip specific categories.
if (
in_array(