Changeset 29695 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 09/03/2014 11:32:52 AM (10 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.