Skip to content

Commit

Permalink
Site Editor: Remove duplicate menu item (#36342)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Nov 10, 2021
1 parent d411486 commit 8d49077
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/full-site-editing/full-site-editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ function gutenberg_remove_legacy_pages() {
$indexes_to_remove[] = $index;
}

if ( false !== strpos( $menu_item[2], 'site-editor.php' ) ) {
$indexes_to_remove[] = $index;
}

if ( false !== strpos( $menu_item[2], 'gutenberg-widgets' ) ) {
$indexes_to_remove[] = $index;
}
Expand Down

0 comments on commit 8d49077

Please sign in to comment.