Changeset 37914 for trunk/src/wp-admin/upload.php
- Timestamp:
- 06/29/2016 03:15:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/upload.php
r36987 r37914 11 11 12 12 if ( !current_user_can('upload_files') ) 13 wp_die( __( ' You do not have permissionto upload files.' ) );13 wp_die( __( 'Sorry, you are not allowed to upload files.' ) ); 14 14 15 15 $mode = get_user_option( 'media_library_mode', get_current_user_id() ) ? get_user_option( 'media_library_mode', get_current_user_id() ) : 'grid'; … … 133 133 foreach ( (array) $post_ids as $post_id ) { 134 134 if ( !current_user_can( 'delete_post', $post_id ) ) 135 wp_die( __( ' You are not allowed to move this item to the Trash.' ) );135 wp_die( __( 'Sorry, you are not allowed to move this item to the Trash.' ) ); 136 136 137 137 if ( !wp_trash_post( $post_id ) ) … … 145 145 foreach ( (array) $post_ids as $post_id ) { 146 146 if ( !current_user_can( 'delete_post', $post_id ) ) 147 wp_die( __( ' You are not allowed to move this item out of the Trash.' ) );147 wp_die( __( 'Sorry, you are not allowed to move this item out of the Trash.' ) ); 148 148 149 149 if ( !wp_untrash_post( $post_id ) ) … … 157 157 foreach ( (array) $post_ids as $post_id_del ) { 158 158 if ( !current_user_can( 'delete_post', $post_id_del ) ) 159 wp_die( __( ' You are not allowed to delete this item.' ) );159 wp_die( __( 'Sorry, you are not allowed to delete this item.' ) ); 160 160 161 161 if ( !wp_delete_attachment( $post_id_del ) )
Note: See TracChangeset
for help on using the changeset viewer.