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. git-svn-id: https://develop.svn.wordpress.org/trunk@48076 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fbb42b017b
commit
dbceb01b83
@ -74,7 +74,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
||||
|
||||
if ( 'taxonomy' === $item->type ) {
|
||||
$original_object = get_term( (int) $item->object_id, $item->object );
|
||||
if ( $original_object && ! is_wp_error( $original_title ) ) {
|
||||
if ( $original_object && ! is_wp_error( $original_object ) ) {
|
||||
$original_title = $original_object->name;
|
||||
}
|
||||
} elseif ( 'post_type' === $item->type ) {
|
||||
|
Loading…
Reference in New Issue
Block a user