WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/24/2010 08:45:21 PM (10 years ago)
Author:
markjaquith
Message:

Improve the wording of the file upload security message. props janeforshort. fixes #13550

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/file.php

    r16438 r16577  
    339339
    340340        if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) )
    341             return call_user_func($upload_error_handler, $file, __( 'File type does not meet security guidelines. Try another.' ));
     341            return call_user_func($upload_error_handler, $file, __( 'Sorry, this file type is not permitted for security reasons.' ));
    342342
    343343        if ( !$ext )
     
    459459
    460460        if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) )
    461             return $upload_error_handler( $file, __( 'File type does not meet security guidelines. Try another.' ));
     461            return $upload_error_handler( $file, __( 'Sorry, this file type is not permitted for security reasons.' ));
    462462
    463463        if ( !$ext )
Note: See TracChangeset for help on using the changeset viewer.