WordPress.org

Make WordPress Core

Changeset 24798


Ignore:
Timestamp:
07/27/13 06:50:59 (9 months ago)
Author:
markjaquith
Message:

Reinstate 'label' property of nav menu items. Fixes a regression from [22234].

Fixes #24840. Props johnbillion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/nav-menu.php

    r24702 r24798  
    265265            $title = sprintf( _x( 'Home: %s', 'nav menu front page title' ), $item->post_title ); 
    266266            $output .= ' add-to-top'; 
     267        } elseif ( 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 ) .'" /> '; 
Note: See TracChangeset for help on using the changeset viewer.