From 392867ae0779641e7286b68d968e77bdfdf6e506 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 18 Mar 2025 21:46:43 +0000 Subject: [PATCH] Coding Standards: Remove leading and trailing spaces in URLs on the Menus screen. Follow-up to [42343]. Props kkmuffme. Fixes #62978. git-svn-id: https://develop.svn.wordpress.org/trunk@60045 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/nav-menus.php | 98 +++++++++++++++++++++----------------- 1 file changed, 53 insertions(+), 45 deletions(-) diff --git a/src/wp-admin/nav-menus.php b/src/wp-admin/nav-menus.php index 695f0cfc11..36905bab63 100644 --- a/src/wp-admin/nav-menus.php +++ b/src/wp-admin/nav-menus.php @@ -879,45 +879,45 @@ require_once ABSPATH . 'wp-admin/admin-header.php'; @@ -1203,8 +1203,8 @@ require_once ABSPATH . 'wp-admin/admin-header.php'; $checked = false; if ( isset( $menu_locations[ $location ] ) - && 0 !== $nav_menu_selected_id - && $menu_locations[ $location ] === $nav_menu_selected_id + && 0 !== $nav_menu_selected_id + && $menu_locations[ $location ] === $nav_menu_selected_id ) { $checked = true; } @@ -1241,26 +1241,34 @@ require_once ABSPATH . 'wp-admin/admin-header.php'; - + %2$s', + esc_url( admin_url( 'nav-menus.php' ) ), + __( 'Cancel' ) + ); + ?> - %2$s', + esc_url( + wp_nonce_url( + add_query_arg( + array( + 'action' => 'delete', + 'menu' => $nav_menu_selected_id, + ), + admin_url( 'nav-menus.php' ) ), - admin_url( 'nav-menus.php' ) - ), - 'delete-nav_menu-' . $nav_menu_selected_id - ) + 'delete-nav_menu-' . $nav_menu_selected_id + ) + ), + __( 'Delete Menu' ) ); ?> - ">