Ticket #53626: 53626.diff
File 53626.diff, 2.0 KB (added by , 3 years ago) |
---|
-
wp-admin/includes/file.php
931 931 } 932 932 933 933 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.' ) ) ); 935 935 } 936 936 937 937 if ( ! $type ) { -
wp-includes/functions.php
2684 2684 2685 2685 $wp_filetype = wp_check_filetype( $name ); 2686 2686 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.' ) ); 2688 2688 } 2689 2689 2690 2690 $upload = wp_upload_dir( $time ); -
wp-includes/script-loader.php
863 863 /* translators: %s: File name. */ 864 864 'file_exceeds_size_limit' => __( '%s exceeds the maximum upload size for this site.' ), 865 865 '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.' ), 867 867 'not_an_image' => __( 'This file is not an image. Please try another.' ), 868 868 'image_memory_exceeded' => __( 'Memory exceeded. Please try another smaller file.' ), 869 869 'image_dimensions_exceeded' => __( 'This is larger than the maximum size. Please try another.' ),