From baccf378c44a5b9ba977983f250f589716038075 Mon Sep 17 00:00:00 2001 From: Anton Vlasenko Date: Thu, 4 Nov 2021 15:11:47 +0100 Subject: [PATCH] Refactor the gutenberg_fix_navigation_items_admin_menu_entry function. The new name better describes the purpose of the function. --- lib/navigation.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/navigation.php b/lib/navigation.php index 590ca6f2732f93..8e77b1a45f2c2c 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -492,9 +492,9 @@ function gutenberg_enable_content_editor_for_navigation_post_type( $post ) { add_action( 'edit_form_after_editor', 'gutenberg_enable_content_editor_for_navigation_post_type', 10, 1 ); /** - * Fixes the label of the 'wp_navigation' admin menu entry. + * Rename the menu title from "All Navigation Menus" to "Navigation Menus". */ -function gutenberg_fix_navigation_items_admin_menu_entry() { +function gutenberg_rename_navigation_menus_admin_menu_entry() { global $submenu; if ( ! isset( $submenu['themes.php'] ) ) { return; @@ -511,4 +511,4 @@ function gutenberg_fix_navigation_items_admin_menu_entry() { } } -add_action( 'admin_menu', 'gutenberg_fix_navigation_items_admin_menu_entry' ); +add_action( 'admin_menu', 'gutenberg_rename_navigation_menus_admin_menu_entry' );