Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#50415 closed defect (bug) (fixed)

Nav menu item's term validation error

Reported by: ashour Owned by: SergeyBiryukov
Priority: normal Milestone: 5.5
Component: Menus Version: 5.3
Severity: minor Keywords: has-patch
Cc: Focuses:

Description

There is a wrong error validation for the menu item term existance in
wp-admin/includes/class-walker-nav-menu-edit.php: 77 start_el() function

$original_object instead of $original_title

Attachments (1)

50415#.diff​ (644 bytes ) - added by ashour 6 years ago.
A fix for the error validation of the $original_object variable

Download all attachments as: .zip

Change History (4)

@ashour
6 years ago

A fix for the error validation of the $original_object variable

#1 @SergeyBiryukov
6 years ago

  • Milestone Awaiting Review → 5.5
  • Version trunk → 5.3

Hi there, welcome to WordPress Trac! Thanks for the report.

Good catch! Introduced in [45891], which added the new $original_object variable but missed updating the is_wp_error() check.

#2 @SergeyBiryukov
6 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 48076:

Menus: Check the correct variable in Walker_Nav_Menu_Edit::start_el() when menu item is a taxonomy term.

Follow-up to [45891].

Props ashour.
Fixes #50415.

#3 @desrosj
6 years ago

  • Summary Nave menu item's term validation error → Nav menu item's term validation error
Note: See TracTickets for help on using tickets.