Changeset 11807 for trunk/wp-admin/upload.php
- Timestamp:
- 08/12/2009 10:57:15 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload.php
r11749 r11807 12 12 wp_enqueue_script( 'jquery-ui-draggable' ); 13 13 14 if ( !current_user_can('upload_files'))14 if ( !current_user_can('upload_files') ) 15 15 wp_die(__('You do not have permission to upload files.')); 16 16 17 if ( isset($_GET['find_detached'] 17 if ( isset($_GET['find_detached']) ) { 18 18 check_admin_referer('bulk-media'); 19 19 20 if ( ! 20 if ( !current_user_can('edit_posts') ) 21 21 wp_die( __('You are not allowed to scan for lost attachments.') ); 22 22 … … 100 100 foreach( (array) $post_ids as $post_id ) { 101 101 if ( !current_user_can('delete_post', $post_id) ) 102 wp_die( __('You are not allowed to remove this post fromthe trash.') );102 wp_die( __('You are not allowed to move this post out of the trash.') ); 103 103 104 104 if ( !wp_untrash_post($post_id) )
Note: See TracChangeset
for help on using the changeset viewer.