Changeset 34797 for trunk/src/wp-admin/upload.php
- Timestamp:
- 10/03/2015 01:56:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/upload.php
r34256 r34797 129 129 foreach ( (array) $post_ids as $post_id ) { 130 130 if ( !current_user_can( 'delete_post', $post_id ) ) 131 wp_die( __( 'You are not allowed to move this post to the trash.' ) );131 wp_die( __( 'You are not allowed to move this item to the Trash.' ) ); 132 132 133 133 if ( !wp_trash_post( $post_id ) ) … … 141 141 foreach ( (array) $post_ids as $post_id ) { 142 142 if ( !current_user_can( 'delete_post', $post_id ) ) 143 wp_die( __( 'You are not allowed to move this post out of the trash.' ) );143 wp_die( __( 'You are not allowed to move this item out of the Trash.' ) ); 144 144 145 145 if ( !wp_untrash_post( $post_id ) ) … … 153 153 foreach ( (array) $post_ids as $post_id_del ) { 154 154 if ( !current_user_can( 'delete_post', $post_id_del ) ) 155 wp_die( __( 'You are not allowed to delete this post.' ) );155 wp_die( __( 'You are not allowed to delete this item.' ) ); 156 156 157 157 if ( !wp_delete_attachment( $post_id_del ) )
Note: See TracChangeset
for help on using the changeset viewer.