From 6eb679999fdacde09a08067a74c91f78bc369e0f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 8 Jul 2025 13:23:35 +0000 Subject: [PATCH] Coding Standards: Remove redundant check in `wp-admin/nav-menus.php`. The `$add_new_screen` variable is already checked as falsey a few lines above, and is a prerequisite for reaching this code. Follow-up to [51539]. Props justlevine. See #63268. Built from https://develop.svn.wordpress.org/trunk@60440 git-svn-id: http://core.svn.wordpress.org/trunk@59776 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/nav-menus.php | 14 ++++++-------- wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php index 82c8e264ad..ea76404c2e 100644 --- a/wp-admin/nav-menus.php +++ b/wp-admin/nav-menus.php @@ -1122,14 +1122,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';

- - - +