Changeset 29695
- Timestamp:
- 09/03/2014 11:32:52 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r29625 r29695 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 -
trunk/src/wp-includes/admin-bar.php
r29170 r29695 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 ),
Note: See TracChangeset
for help on using the changeset viewer.