Ticket #13958: 13958.patch
File 13958.patch, 2.5 KB (added by , 13 years ago) |
---|
-
wp-admin/css/nav-menu.dev.css
295 295 -moz-border-radius: 3px; 296 296 -khtml-border-radius: 3px; 297 297 } 298 #menu-to-edit .menu-item-invalid .menu-item-handle { 299 background-image: -webkit-gradient(linear, center top, center bottom, from(#fdf8ff), to(#f6c9cc)) !important; 300 background-image: -moz-linear-gradient(top, #fdf8ff, #f6c9cc) !important; 301 } 298 302 .menu-item-edit-active .menu-item-handle { 299 303 -moz-border-radius: 3px 3px 0 0; 300 304 -webkit-border-bottom-right-radius: 0; -
wp-admin/includes/nav-menu.php
65 65 'menu-item-edit-' . ( ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) ? 'active' : 'inactive'), 66 66 ); 67 67 68 if ( isset( $item->_invalid ) ) 69 $classes[] = 'menu-item-invalid'; 70 68 71 $title = $item->title; 69 72 70 73 if ( isset( $item->post_status ) && 'draft' == $item->post_status ) { -
wp-includes/nav-menu.php
559 559 $menu_item->type = empty( $menu_item->type ) ? get_post_meta( $menu_item->ID, '_menu_item_type', true ) : $menu_item->type; 560 560 561 561 if ( 'post_type' == $menu_item->type ) { 562 $object = get_post_type_object( $menu_item->object ); 563 $menu_item->type_label = $object->labels->singular_name; 562 if ( post_type_exists( $menu_item->object ) ) { 563 $menu_item->type_label = get_post_type_object( $menu_item->object )->labels->singular_name; 564 } else { 565 $menu_item->type_label = $menu_item->object; 566 $menu_item->_invalid = true; 567 } 568 564 569 $menu_item->url = get_permalink( $menu_item->object_id ); 565 570 566 571 $original_object = get_post( $menu_item->object_id ); … … 568 573 $menu_item->title = '' == $menu_item->post_title ? $original_title : $menu_item->post_title; 569 574 570 575 } elseif ( 'taxonomy' == $menu_item->type ) { 571 $object = get_taxonomy( $menu_item->object ); 572 $menu_item->type_label = $object->labels->singular_name; 576 if ( taxonomy_exists( $menu_item->object ) ) { 577 $menu_item->type_label = get_taxonomy( $menu_item->object )->labels->singular_name; 578 } else { 579 $menu_item->type_label = $menu_item->object; 580 $menu_item->_invalid = true; 581 } 582 573 583 $term_url = get_term_link( (int) $menu_item->object_id, $menu_item->object ); 574 584 $menu_item->url = !is_wp_error( $term_url ) ? $term_url : ''; 575 585