Make WordPress Core

Ticket #14521: 14521.diff

File 14521.diff, 1.1 KB (added by wojtek.szkutnik, 13 years ago)
  • wp-admin/includes/file.php

     
    315315                        $file['name'] = $proper_filename;
    316316
    317317                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.' ));
    319319
    320320                if ( !$ext )
    321321                        $ext = ltrim(strrchr($file['name'], '.'), '.');
     
    429429                        $file['name'] = $proper_filename;
    430430
    431431                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.' ));
    433433
    434434                if ( !$ext )
    435435                        $ext = ltrim(strrchr($file['name'], '.'), '.');