Ticket #14975: 14975.diff

File 14975.diff, 815 bytes (added by nacin, 2 years ago)
  • wp-admin/includes/nav-menu.php

     
    233233                        $output .= ' add-to-top'; 
    234234                } 
    235235                $output .= '" name="menu-item[' . $possible_object_id . '][menu-item-object-id]" value="'. esc_attr( $item->object_id ) .'" /> '; 
    236                 $output .= empty( $item->label ) ? esc_html( $item->title ) : esc_html( $item->label ); 
     236                if ( isset( $item->post_type ) ) 
     237                        $output .= empty( $item->label ) ? esc_html( apply_filters( 'the_title', $item->title, $item->ID ) ) : esc_html( $item->label ); 
     238                else 
     239                        $output .= empty( $item->label ) ? esc_html( $item->title ) : esc_html( $item->label ); 
    237240                $output .= '</label>'; 
    238241 
    239242                // Menu item hidden fields