Changes from trunk/wp-admin/includes/nav-menu.php at r18277 to branches/3.2/wp-admin/includes/nav-menu.php at r18427
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/wp-admin/includes/nav-menu.php
r18277 r18427 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>' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.