Ticket #14521: 14521.diff
File 14521.diff, 1.1 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/file.php
315 315 $file['name'] = $proper_filename; 316 316 317 317 if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) ) 318 return call_user_func($upload_error_handler, $file, __( ' File type does not meet security guidelines. Try another.' ));318 return call_user_func($upload_error_handler, $file, __( 'This file type is not allowed. Try another one or extend the file type whitelist by using a plugin.' )); 319 319 320 320 if ( !$ext ) 321 321 $ext = ltrim(strrchr($file['name'], '.'), '.'); … … 429 429 $file['name'] = $proper_filename; 430 430 431 431 if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) ) 432 return $upload_error_handler( $file, __( ' File type does not meet security guidelines. Try another.' ));432 return $upload_error_handler( $file, __( 'This file type is not allowed. Try another one or extend the file type whitelist by using a plugin.' )); 433 433 434 434 if ( !$ext ) 435 435 $ext = ltrim(strrchr($file['name'], '.'), '.');