Make WordPress Core


Ignore:
Timestamp:
09/03/2014 11:32:52 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Restore the post type's view_item label for preview links that don't submit the changes.

fixes #28350.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r29625 r29695  
    11911191    if ( current_user_can( 'read_post', $post->ID ) ) {
    11921192        $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;
    11981194    }
    11991195
Note: See TracChangeset for help on using the changeset viewer.