Changeset 28268
- Timestamp:
- 05/06/2014 04:21:35 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r27938 r28268 295 295 return call_user_func($upload_error_handler, $file, __( 'Sorry, this file type is not permitted for security reasons.' )); 296 296 297 if ( !$ext )298 $ext = ltrim(strrchr($file['name'], '.'), '.');299 300 297 if ( !$type ) 301 298 $type = $file['type']; … … 434 431 if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) ) 435 432 return $upload_error_handler( $file, __( 'Sorry, this file type is not permitted for security reasons.' )); 436 437 if ( !$ext )438 $ext = ltrim(strrchr($file['name'], '.'), '.');439 433 440 434 if ( !$type ) … … 1063 1057 $hostname = ''; 1064 1058 $username = ''; 1065 $password = '';1066 1059 $connection_type = ''; 1067 1060 if ( !empty($credentials) )
Note: See TracChangeset
for help on using the changeset viewer.