WordPress.org

Make WordPress Core

Changeset 7830


Ignore:
Timestamp:
04/25/08 15:23:23 (6 years ago)
Author:
ryan
Message:

Move cap check up. Props mdawaffe. fixes #6838 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-admin/media.php

    r7828 r7830  
    1010switch( $action ) : 
    1111case 'editattachment' : 
    12     $errors = media_upload_form_handler(); 
    1312    $attachment_id = (int) $_POST['attachment_id']; 
    14  
    1513    check_admin_referer('media-form'); 
    1614 
    1715    if ( !current_user_can('edit_post', $attachment_id) ) 
    1816        wp_die ( __('You are not allowed to edit this attachment.') ); 
     17 
     18    $errors = media_upload_form_handler(); 
    1919 
    2020    if ( empty($errors) ) { 
Note: See TracChangeset for help on using the changeset viewer.