Ticket #18584: nav_menu.diff
File nav_menu.diff, 2.2 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/nav-menu.php
171 171 <span class="description"><?php _e('The description will be displayed in the menu if the current theme supports it.'); ?></span> 172 172 </label> 173 173 </p> 174 174 175 <?php do_action( 'wp_nav_menu_custom_fields', $item, $item_id ); ?> 176 175 177 <div class="menu-item-actions description-wide submitbox"> 176 178 <?php if( 'custom' != $item->type && $original_title !== false ) : ?> 177 179 <p class="link-to-original"> 178 180 <?php printf( __('Original: %s'), '<a href="' . esc_attr( $item->url ) . '">' . esc_html( $original_title ) . '</a>' ); ?> 179 181 </p> 180 182 <?php endif; ?> 183 184 <?php do_action( 'wp_nav_menu_links', $item, $item_id ); ?> 185 181 186 <a class="item-delete submitdelete deletion" id="delete-<?php echo $item_id; ?>" href="<?php 182 187 echo wp_nonce_url( 183 188 add_query_arg( … … 1025 1030 'menu-item-classes' => ( isset( $_item_object_data['menu-item-classes'] ) ? $_item_object_data['menu-item-classes'] : '' ), 1026 1031 'menu-item-xfn' => ( isset( $_item_object_data['menu-item-xfn'] ) ? $_item_object_data['menu-item-xfn'] : '' ), 1027 1032 ); 1028 1033 1034 $args = apply_filters( 'wp_save_nav_menu_args', $args, $menu_id, $_item_object_data ); 1035 1029 1036 $items_saved[] = wp_update_nav_menu_item( $menu_id, $_actual_db_id, $args ); 1030 1037 1031 1038 } -
wp-includes/nav-menu-template.php
85 85 $attributes .= ! empty( $item->target ) ? ' target="' . esc_attr( $item->target ) .'"' : ''; 86 86 $attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) .'"' : ''; 87 87 $attributes .= ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) .'"' : ''; 88 89 $attributes = apply_filters( 'nav_menu_item_attributes', $attributes, $item ); 88 90 89 91 $item_output = $args->before; 90 92 $item_output .= '<a'. $attributes .'>';