Make WordPress Core

Changeset 27612


Ignore:
Timestamp:
03/19/2014 05:48:28 AM (12 years ago)
Author:
nacin
Message:

Remove two new strings from post_preview().

see #25272, #27453.

File:
1 edited

Legend:

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

    r27611 r27612  
    13801380        $_POST['ID'] = $post_ID;
    13811381
    1382         if ( ! $post = get_post( $post_ID ) )
    1383                 wp_die( __('You attempted to preview a non existing item.') );
    1384 
    1385         if ( ! current_user_can( 'edit_post', $post->ID ) )
    1386                 wp_die( __('You are not allowed to preview this item.') );
     1382        if ( ! $post = get_post( $post_ID ) ) {
     1383                wp_die( __( 'You are not allowed to edit this post.' ) );
     1384        }
     1385
     1386        if ( ! current_user_can( 'edit_post', $post->ID ) ) {
     1387                wp_die( __( 'You are not allowed to edit this post.' ) );
     1388        }
    13871389
    13881390        $is_autosave = false;
Note: See TracChangeset for help on using the changeset viewer.