WordPress.org

Make WordPress Core

Ticket #14521: 14521.patch

File 14521.patch, 1.1 KB (added by markmcwilliams, 8 years ago)

updated patch with words from jane

  • wp-admin/includes/file.php

     
    338338                        $file['name'] = $proper_filename;
    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 )
    344344                        $ext = ltrim(strrchr($file['name'], '.'), '.');
     
    458458                        $file['name'] = $proper_filename;
    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 )
    464464                        $ext = ltrim(strrchr($file['name'], '.'), '.');