Changeset 11930 for trunk/wp-admin/upload.php
- Timestamp:
- 09/14/2009 02:03:32 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/upload.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload.php
r11841 r11930 70 70 } elseif ( isset($_GET['doaction']) || isset($_GET['doaction2']) || isset($_GET['delete_all']) || isset($_GET['delete_all2']) ) { 71 71 check_admin_referer('bulk-media'); 72 72 73 73 if ( isset($_GET['delete_all']) || isset($_GET['delete_all2']) ) { 74 74 $post_ids = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE post_type='attachment' AND post_status = 'trash'" ); … … 79 79 } else 80 80 wp_redirect($_SERVER['HTTP_REFERER']); 81 81 82 82 $location = 'upload.php'; 83 83 if ( $referer = wp_get_referer() ) { … … 91 91 if ( !current_user_can('delete_post', $post_id) ) 92 92 wp_die( __('You are not allowed to move this post to the trash.') ); 93 93 94 94 if ( !wp_trash_post($post_id) ) 95 95 wp_die( __('Error in moving to trash...') ); … … 101 101 if ( !current_user_can('delete_post', $post_id) ) 102 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) ) 105 105 wp_die( __('Error in restoring from trash...') ); … … 111 111 if ( !current_user_can('delete_post', $post_id_del) ) 112 112 wp_die( __('You are not allowed to delete this post.') ); 113 113 114 114 if ( !wp_delete_attachment($post_id_del) ) 115 115 wp_die( __('Error in deleting...') );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)