From 271fc0d1515127a3e5bd7c37c8ac2680416528fe Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Thu, 3 Oct 2019 20:02:28 +0000 Subject: [PATCH] Menus: Fix typo in the class attribute for the hidden `title` field in `Walker_Nav_Menu_Checklist`. Each item that `Walker_Nav_Menu_Checklist` displays is accompanied by several hidden `` fields that specify default values for each item when added to a menu. These values are passed in JavaScript to the AJAX call triggered when an item is added to a menu. The hidden field for the title attribute field incorrectly had an underscore instead of a hyphen. Because of this, it was impossible to supply a default value for the Title Attribute field of a nav menu item. Props yanngarcia, davidbaumwald. See #47838. git-svn-id: https://develop.svn.wordpress.org/trunk@46380 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-walker-nav-menu-checklist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-walker-nav-menu-checklist.php b/src/wp-admin/includes/class-walker-nav-menu-checklist.php index 3cc4401884..81c088420c 100644 --- a/src/wp-admin/includes/class-walker-nav-menu-checklist.php +++ b/src/wp-admin/includes/class-walker-nav-menu-checklist.php @@ -113,7 +113,7 @@ class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu { $output .= ''; $output .= ''; $output .= ''; - $output .= ''; + $output .= ''; $output .= ''; $output .= ''; }