After following the guide for How can I prevent uploading bmp image? to remove bmp (and in my case tiff images) from being uploaded, I tested and it is working, but noticed users are now getting the error message:
Sorry, this file type is not permitted for security reasons.
screenshot-with-shadow.png http://img813.imageshack.us/img813/4526/screenshotwithshadow.png
That looks to be in the wp-admin/includes/file.php
folder:
if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) )
return $upload_error_handler( $file, __( 'Sorry, this file type is not permitted for security reasons.' ));
and also further down:
if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) )
return call_user_func($upload_error_handler, $file, __( 'Sorry, this file type is not permitted for security reasons.' ));
How can I hook into this so that I can change the message to something a little more friendly?