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. Built from https://develop.svn.wordpress.org/trunk@48076 git-svn-id: http://core.svn.wordpress.org/trunk@47843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d81302511d
commit
cb72d22d67
|
@ -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 ) {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5-alpha-48075';
|
||||
$wp_version = '5.5-alpha-48076';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue