Changeset 27612
- Timestamp:
- 03/19/2014 05:48:28 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r27611 r27612 1380 1380 $_POST['ID'] = $post_ID; 1381 1381 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 } 1387 1389 1388 1390 $is_autosave = false;
Note: See TracChangeset
for help on using the changeset viewer.