Changeset 37914 for trunk/src/wp-admin/post.php
- Timestamp:
- 06/29/2016 03:15:40 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/post.php
r37424 r37914 111 111 112 112 if ( ! in_array( $typenow, get_post_types( array( 'show_ui' => true ) ) ) ) { 113 wp_die( __( ' You are not allowed to edit posts in this post type.' ) );113 wp_die( __( 'Sorry, you are not allowed to edit posts in this post type.' ) ); 114 114 } 115 115 116 116 if ( ! current_user_can( 'edit_post', $post_id ) ) 117 wp_die( __( ' You are not allowed to edit this item.' ) );117 wp_die( __( 'Sorry, you are not allowed to edit this item.' ) ); 118 118 119 119 if ( 'trash' == $post->post_status ) … … 212 212 213 213 if ( ! current_user_can( 'delete_post', $post_id ) ) 214 wp_die( __( ' You are not allowed to move this item to the Trash.' ) );214 wp_die( __( 'Sorry, you are not allowed to move this item to the Trash.' ) ); 215 215 216 216 if ( $user_id = wp_check_post_lock( $post_id ) ) { … … 235 235 236 236 if ( ! current_user_can( 'delete_post', $post_id ) ) 237 wp_die( __( ' You are not allowed to restore this item from the Trash.' ) );237 wp_die( __( 'Sorry, you are not allowed to restore this item from the Trash.' ) ); 238 238 239 239 if ( ! wp_untrash_post( $post_id ) ) … … 253 253 254 254 if ( ! current_user_can( 'delete_post', $post_id ) ) 255 wp_die( __( ' You are not allowed to delete this item.' ) );255 wp_die( __( 'Sorry, you are not allowed to delete this item.' ) ); 256 256 257 257 if ( $post->post_type == 'attachment' ) {
Note: See TracChangeset
for help on using the changeset viewer.