Ticket #23254: 23254.2.patch
File 23254.2.patch, 1.2 KB (added by , 12 years ago) |
---|
-
wp-includes/nav-menu.php
641 641 $menu_item->object = $object->name; 642 642 $menu_item->type_label = $object->labels->singular_name; 643 643 644 if ( '' == $menu_item->post_title ) 645 $menu_item->post_title = sprintf( __( '#%d (no title)' ), $menu_item->ID ); 646 644 647 $menu_item->title = $menu_item->post_title; 645 648 $menu_item->url = get_permalink( $menu_item->ID ); 646 649 $menu_item->target = ''; -
wp-includes/post-template.php
1057 1057 1058 1058 $css_class = implode( ' ', apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page ) ); 1059 1059 1060 if ( '' == $page->post_title ) 1061 $page->post_title = sprintf( __( '#%d (no title)' ), $page->ID ); 1062 1060 1063 $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_permalink($page->ID) . '">' . $link_before . apply_filters( 'the_title', $page->post_title, $page->ID ) . $link_after . '</a>'; 1061 1064 1062 1065 if ( !empty($show_date) ) {