Skip to content

Commit

Permalink
add explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Dwyer committed Jan 25, 2023
1 parent 4fdf1c3 commit 8c908f5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,9 @@ function NavigationMenuSelector( {

if ( ! hasNavigationMenus && ! hasClassicMenus ) {
if ( ! process.env.IS_GUTENBERG_PLUGIN ) {
// This has to be in it's own conditional so it is removed by dead code elimination. Previously used isOffCanvasNavigationEditorEnabled.
return NavigationMenuSelectorButton;
}

return NavigationMenuSelectorButton;
}

return NavigationMenuSelectorDropdown;
Expand Down

0 comments on commit 8c908f5

Please sign in to comment.