Make WordPress Core

Ticket #27059: 27059.3.patch

File 27059.3.patch, 766 bytes (added by SergeyBiryukov, 12 years ago)
  • src/wp-admin/includes/post.php

     
    10821082
    10831083        list($permalink, $post_name) = get_sample_permalink($post->ID, $new_title, $new_slug);
    10841084
     1085        if ( current_user_can( 'read_post', $post->ID ) ) {
     1086                $ptype = get_post_type_object( $post->post_type );
     1087                $view_post = $ptype->labels->view_item;
     1088        }
     1089
    10851090        if ( 'publish' == get_post_status( $post ) ) {
    1086                 $ptype = get_post_type_object($post->post_type);
    1087                 $view_post = $ptype->labels->view_item;
    10881091                $title = __('Click to edit this part of the permalink');
    10891092        } else {
    10901093                $title = __('Temporary permalink. Click to edit this part.');