Ticket #53626: 53626.2.diff
File 53626.2.diff, 2.1 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, you are not allowed to upload this file type.' ) ) ); 935 935 } 936 936 937 937 if ( ! $type ) { -
wp-includes/functions.php
2793 2793 2794 2794 $wp_filetype = wp_check_filetype( $name ); 2795 2795 if ( ! $wp_filetype['ext'] && ! current_user_can( 'unfiltered_upload' ) ) { 2796 return array( 'error' => __( 'Sorry, this file type is not permitted for security reasons.' ) );2796 return array( 'error' => __( 'Sorry, you are not allowed to upload this file type.' ) ); 2797 2797 } 2798 2798 2799 2799 $upload = wp_upload_dir( $time ); -
wp-includes/script-loader.php
866 866 /* translators: %s: File name. */ 867 867 'file_exceeds_size_limit' => __( '%s exceeds the maximum upload size for this site.' ), 868 868 'zero_byte_file' => __( 'This file is empty. Please try another.' ), 869 'invalid_filetype' => __( 'Sorry, this file type is not permitted for security reasons.' ),869 'invalid_filetype' => __( 'Sorry, you are not allowed to upload this file type.' ), 870 870 'not_an_image' => __( 'This file is not an image. Please try another.' ), 871 871 'image_memory_exceeded' => __( 'Memory exceeded. Please try another smaller file.' ), 872 872 'image_dimensions_exceeded' => __( 'This is larger than the maximum size. Please try another.' ),