Changeset 22471
- Timestamp:
- 11/08/2012 08:41:34 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r22331 r22471 1678 1678 1679 1679 $wp_filetype = wp_check_filetype( $name ); 1680 if ( ! $wp_filetype['ext'])1680 if ( ! $wp_filetype['ext'] && ! current_user_can( 'unfiltered_upload' ) ) 1681 1681 return array( 'error' => __( 'Invalid file type' ) ); 1682 1682
Note: See TracChangeset
for help on using the changeset viewer.