Make WordPress Core


Ignore:
Timestamp:
06/17/2020 07:45:56 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-walker-nav-menu-edit.php

    r47808 r48076  
    7575        if ( 'taxonomy' === $item->type ) {
    7676            $original_object = get_term( (int) $item->object_id, $item->object );
    77             if ( $original_object && ! is_wp_error( $original_title ) ) {
     77            if ( $original_object && ! is_wp_error( $original_object ) ) {
    7878                $original_title = $original_object->name;
    7979            }
Note: See TracChangeset for help on using the changeset viewer.