Changeset 37914 for trunk/src/wp-admin/edit.php
- Timestamp:
- 06/29/2016 03:15:40 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit.php
r37890 r37914 14 14 15 15 if ( ! in_array( $typenow, get_post_types( array( 'show_ui' => true ) ) ) ) { 16 wp_die( __( ' You are not allowed to edit posts in this post type.' ) );16 wp_die( __( 'Sorry, you are not allowed to edit posts in this post type.' ) ); 17 17 } 18 18 … … 38 38 wp_die( 39 39 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 40 '<p>' . __( ' You are not allowed to edit posts in this post type.' ) . '</p>',40 '<p>' . __( 'Sorry, you are not allowed to edit posts in this post type.' ) . '</p>', 41 41 403 42 42 ); … … 104 104 foreach ( (array) $post_ids as $post_id ) { 105 105 if ( !current_user_can( 'delete_post', $post_id) ) 106 wp_die( __(' You are not allowed to move this item to the Trash.') );106 wp_die( __('Sorry, you are not allowed to move this item to the Trash.') ); 107 107 108 108 if ( wp_check_post_lock( $post_id ) ) { … … 123 123 foreach ( (array) $post_ids as $post_id ) { 124 124 if ( !current_user_can( 'delete_post', $post_id) ) 125 wp_die( __(' You are not allowed to restore this item from the Trash.') );125 wp_die( __('Sorry, you are not allowed to restore this item from the Trash.') ); 126 126 127 127 if ( !wp_untrash_post($post_id) ) … … 138 138 139 139 if ( !current_user_can( 'delete_post', $post_id ) ) 140 wp_die( __(' You are not allowed to delete this item.') );140 wp_die( __('Sorry, you are not allowed to delete this item.') ); 141 141 142 142 if ( $post_del->post_type == 'attachment' ) {
Note: See TracChangeset
for help on using the changeset viewer.