Changeset 7828
- Timestamp:
- 04/25/08 15:01:28 (7 months ago)
- Files:
-
- branches/2.5/wp-admin/media.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.5/wp-admin/media.php
r7554 r7828 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
