Changeset 18426
- Timestamp:
- 07/11/2011 07:03:04 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/nav-menu.php
r18277 r18426 55 55 if ( 'taxonomy' == $item->type ) { 56 56 $original_title = get_term_field( 'name', $item->object_id, $item->object, 'raw' ); 57 if ( is_wp_error( $original_title ) ) 58 $original_title = false; 57 59 } elseif ( 'post_type' == $item->type ) { 58 60 $original_object = get_post( $item->object_id ); … … 172 174 173 175 <div class="menu-item-actions description-wide submitbox"> 174 <?php if( 'custom' != $item->type ) : ?>176 <?php if( 'custom' != $item->type && $original_title !== false ) : ?> 175 177 <p class="link-to-original"> 176 178 <?php printf( __('Original: %s'), '<a href="' . esc_attr( $item->url ) . '">' . esc_html( $original_title ) . '</a>' ); ?> -
trunk/wp-includes/nav-menu.php
r18277 r18426 606 606 607 607 $original_title = get_term_field( 'name', $menu_item->object_id, $menu_item->object, 'raw' ); 608 if ( is_wp_error( $original_title ) ) 609 $original_title = false; 608 610 $menu_item->title = '' == $menu_item->post_title ? $original_title : $menu_item->post_title; 609 611
Note: See TracChangeset
for help on using the changeset viewer.