Make WordPress Core


Ignore:
Timestamp:
04/24/2007 11:27:20 PM (19 years ago)
Author:
rob1n
Message:

Add unfiltered_upload cap, and allow for admins. Props Nazgul. fixes #4136

File:
1 edited

Legend:

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

    r5259 r5303  
    19491949
    19501950    // A correct MIME type will pass this test. Override $mimes or use the upload_mimes filter.
    1951     if ( $test_type ) {
     1951    if ( $test_type && !current_user_can( 'unfiltered_upload' ) ) {
    19521952        $wp_filetype = wp_check_filetype( $file['name'], $mimes );
    19531953
Note: See TracChangeset for help on using the changeset viewer.