Ticket #28006: 28006.diff
File 28006.diff, 1.8 KB (added by , 10 years ago) |
---|
-
wp-includes/admin-bar.php
520 520 && current_user_can( 'edit_post', $current_object->ID ) 521 521 && $post_type_object->show_ui && $post_type_object->show_in_admin_bar ) 522 522 { 523 $title = $post_type_object->labels->edit_item; 524 if( 'draft' == $current_object->post_status ) { 525 $title .= ' (' . __( 'Draft' ) . ')'; 526 } 527 523 528 $wp_admin_bar->add_menu( array( 524 529 'id' => 'edit', 525 'title' => $ post_type_object->labels->edit_item,530 'title' => $title, 526 531 'href' => get_edit_post_link( $current_object->ID ) 527 532 ) ); 528 533 } elseif ( ! empty( $current_object->taxonomy ) -
wp-includes/link-template.php
1208 1208 if ( !$url = get_edit_post_link( $post->ID ) ) 1209 1209 return; 1210 1210 1211 if ( null === $link ) 1211 if ( null === $link ) { 1212 1212 $link = __('Edit This'); 1213 if( 'draft' == $post->post_status ) { 1214 $link .= ' (' . __( 'Draft' ) . ')'; 1215 } 1216 } 1213 1217 1214 1218 $post_type_obj = get_post_type_object( $post->post_type ); 1215 1219 $link = '<a class="post-edit-link" href="' . $url . '">' . $link . '</a>'; -
wp-includes/post-template.php
521 521 if ( isset( $post->post_type ) ) { 522 522 $classes[] = 'single-' . sanitize_html_class($post->post_type, $post_id); 523 523 $classes[] = 'postid-' . $post_id; 524 $classes[] = 'single-status-' . $post->post_status; 524 525 525 526 // Post Format 526 527 if ( post_type_supports( $post->post_type, 'post-formats' ) ) {