Make WordPress Core

Ticket #53626: 53626.diff

File 53626.diff, 2.0 KB (added by Presskopp, 3 years ago)
  • wp-admin/includes/file.php

     
    931931                }
    932932
    933933                if ( ( ! $type || ! $ext ) && ! current_user_can( 'unfiltered_upload' ) ) {
    934                         return call_user_func_array( $upload_error_handler, array( &$file, __( 'Sorry, this file type is not permitted for security reasons.' ) ) );
     934                        return call_user_func_array( $upload_error_handler, array( &$file, __( 'Sorry, this file type is not supported here.' ) ) );
    935935                }
    936936
    937937                if ( ! $type ) {
  • wp-includes/functions.php

     
    26842684
    26852685        $wp_filetype = wp_check_filetype( $name );
    26862686        if ( ! $wp_filetype['ext'] && ! current_user_can( 'unfiltered_upload' ) ) {
    2687                 return array( 'error' => __( 'Sorry, this file type is not permitted for security reasons.' ) );
     2687                return array( 'error' => __( 'Sorry, this file type is not supported here.' ) );
    26882688        }
    26892689
    26902690        $upload = wp_upload_dir( $time );
  • wp-includes/script-loader.php

     
    863863                /* translators: %s: File name. */
    864864                'file_exceeds_size_limit'   => __( '%s exceeds the maximum upload size for this site.' ),
    865865                'zero_byte_file'            => __( 'This file is empty. Please try another.' ),
    866                 'invalid_filetype'          => __( 'Sorry, this file type is not permitted for security reasons.' ),
     866                'invalid_filetype'          => __( 'Sorry, this file type is not supported here.' ),
    867867                'not_an_image'              => __( 'This file is not an image. Please try another.' ),
    868868                'image_memory_exceeded'     => __( 'Memory exceeded. Please try another smaller file.' ),
    869869                'image_dimensions_exceeded' => __( 'This is larger than the maximum size. Please try another.' ),