Make WordPress Core


Ignore:
Timestamp:
12/16/2010 08:43:22 AM (14 years ago)
Author:
nacin
Message:

Remove check_permissions() calls outside of AJAX context. Also only check for switch_themes in check_permissions() for the themes table. see #15326.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload.php

    r16868 r16990  
    1010require_once( './admin.php' );
    1111
     12if ( !current_user_can('upload_files') )
     13    wp_die( __( 'You do not have permission to upload files.' ) );
     14
    1215$wp_list_table = get_list_table('WP_Media_List_Table');
    13 $wp_list_table->check_permissions();
    1416
    1517// Handle bulk actions
Note: See TracChangeset for help on using the changeset viewer.