WordPress.org

Make WordPress Core

Ticket #24840: 24840.patch

File 24840.patch, 728 bytes (added by johnbillion, 5 years ago)
  • wp-admin/includes/nav-menu.php

     
    264264                if ( property_exists( $item, 'front_or_home' ) && $item->front_or_home ) {
    265265                        $title = sprintf( _x( 'Home: %s', 'nav menu front page title' ), $item->post_title );
    266266                        $output .= ' add-to-top';
     267                } else if ( property_exists( $item, 'label' ) ) {
     268                        $title = $item->label;
    267269                }
    268270                $output .= '" name="menu-item[' . $possible_object_id . '][menu-item-object-id]" value="'. esc_attr( $item->object_id ) .'" /> ';
    269271                $output .= isset( $title ) ? esc_html( $title ) : esc_html( $item->title );