From b640c0692e92bbbc12512a5e214e6601902c52b2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 11 Jul 2020 21:48:04 +0000 Subject: [PATCH] Menus: Simplify the test for `wp_update_nav_menu_item()` with special characters in category name. The `menu-item-title` value is saved as a `post_title` property, so the resulting property can be checked directly, without a callback. Follow-up to [48416]. See #48011. Built from https://develop.svn.wordpress.org/trunk@48439 git-svn-id: http://core.svn.wordpress.org/trunk@48208 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/nav-menu.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/nav-menu.php b/wp-includes/nav-menu.php index 6f4d8c807b..36697f1ee9 100644 --- a/wp-includes/nav-menu.php +++ b/wp-includes/nav-menu.php @@ -492,7 +492,7 @@ function wp_update_nav_menu_item( $menu_id = 0, $menu_item_db_id = 0, $menu_item } } - if ( wp_unslash( $args['menu-item-title'] ) == wp_specialchars_decode( $original_title ) ) { + if ( wp_unslash( $args['menu-item-title'] ) === wp_specialchars_decode( $original_title ) ) { $args['menu-item-title'] = ''; } diff --git a/wp-includes/version.php b/wp-includes/version.php index d400db0425..3e5a7c1b78 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-beta1-48438'; +$wp_version = '5.5-beta1-48439'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.