diff --git src/wp-admin/includes/file.php src/wp-admin/includes/file.php
index 079e1ae..09b01e1 100644
|
|
function _wp_handle_upload( &$file, $overrides, $time, $action ) { |
349 | 349 | $file['name'] = $proper_filename; |
350 | 350 | } |
351 | 351 | if ( ( ! $type || !$ext ) && ! current_user_can( 'unfiltered_upload' ) ) { |
352 | | return call_user_func_array( $upload_error_handler, array( &$file, __( 'Sorry, this file type is not permitted for security reasons.' ) ) ); |
| 352 | return call_user_func_array( $upload_error_handler, array( &$file, __( 'Sorry, this file type is not permitted for upload.' ) ) ); |
353 | 353 | } |
354 | 354 | if ( ! $type ) { |
355 | 355 | $type = $file['type']; |
diff --git src/wp-includes/functions.php src/wp-includes/functions.php
index 292abf9..514d167 100644
|
|
function wp_upload_bits( $name, $deprecated, $bits, $time = null ) { |
2134 | 2134 | |
2135 | 2135 | $wp_filetype = wp_check_filetype( $name ); |
2136 | 2136 | if ( ! $wp_filetype['ext'] && ! current_user_can( 'unfiltered_upload' ) ) |
2137 | | return array( 'error' => __( 'Invalid file type' ) ); |
| 2137 | return array( 'error' => __( 'Sorry, this file type is not permitted for upload.' ) ); |
2138 | 2138 | |
2139 | 2139 | $upload = wp_upload_dir( $time ); |
2140 | 2140 | |
diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
index e67997a..0bebc43 100644
|
|
function wp_default_scripts( &$scripts ) { |
278 | 278 | 'queue_limit_exceeded' => __('You have attempted to queue too many files.'), |
279 | 279 | 'file_exceeds_size_limit' => __('%s exceeds the maximum upload size for this site.'), |
280 | 280 | 'zero_byte_file' => __('This file is empty. Please try another.'), |
281 | | 'invalid_filetype' => __('This file type is not allowed. Please try another.'), |
| 281 | 'invalid_filetype' => __('Sorry, this file type is not permitted for upload.'), |
282 | 282 | 'not_an_image' => __('This file is not an image. Please try another.'), |
283 | 283 | 'image_memory_exceeded' => __('Memory exceeded. Please try another smaller file.'), |
284 | 284 | 'image_dimensions_exceeded' => __('This is larger than the maximum size. Please try another.'), |