Ticket #28350: 28350.5.patch
File 28350.5.patch, 1.2 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/post.php
1190 1190 1191 1191 if ( current_user_can( 'read_post', $post->ID ) ) { 1192 1192 $ptype = get_post_type_object( $post->post_type ); 1193 if( 'draft' == $post->post_status ) { 1194 $view_post = __( 'Preview' ); 1195 } else { 1196 $view_post = $ptype->labels->view_item; 1197 } 1193 $view_post = $ptype->labels->view_item; 1198 1194 } 1199 1195 1200 1196 if ( 'publish' == get_post_status( $post ) ) { -
src/wp-includes/admin-bar.php
499 499 $preview_link = apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $preview_link ), $post ); 500 500 $wp_admin_bar->add_menu( array( 501 501 'id' => 'preview', 502 'title' => __( 'Preview' ),502 'title' => $post_type_object->labels->view_item, 503 503 'href' => esc_url( $preview_link ), 504 504 'meta' => array( 'target' => 'wp-preview-' . $post->ID ), 505 505 ) );