Changeset 7827 for trunk/wp-admin/media.php
- Timestamp:
- 04/25/2008 03:01:02 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/media.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/media.php
r7554 r7827 12 12 $errors = media_upload_form_handler(); 13 13 $attachment_id = (int) $_POST['attachment_id']; 14 15 check_admin_referer('media-form'); 16 17 if ( !current_user_can('edit_post', $attachment_id) ) 18 wp_die ( __('You are not allowed to edit this attachment.') ); 19 14 20 if ( empty($errors) ) { 15 21 $location = 'media.php'; … … 40 46 } 41 47 $att_id = (int) $_GET['attachment_id']; 48 49 if ( !current_user_can('edit_post', $att_id) ) 50 wp_die ( __('You are not allowed to edit this attachment.') ); 51 42 52 $att = get_post($att_id); 43 53
Note: See TracChangeset
for help on using the changeset viewer.