Changeset 39891
- Timestamp:
- 01/12/2017 06:28:32 AM (8 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r39850 r39891 2140 2140 $wp_filetype = wp_check_filetype( $name ); 2141 2141 if ( ! $wp_filetype['ext'] && ! current_user_can( 'unfiltered_upload' ) ) 2142 return array( 'error' => __( ' Invalid file type' ) );2142 return array( 'error' => __( 'Sorry, this file type is not permitted for security reasons.' ) ); 2143 2143 2144 2144 $upload = wp_upload_dir( $time ); -
trunk/src/wp-includes/script-loader.php
r39684 r39891 281 281 'file_exceeds_size_limit' => __('%s exceeds the maximum upload size for this site.'), 282 282 'zero_byte_file' => __('This file is empty. Please try another.'), 283 'invalid_filetype' => __(' This file type is not allowed. Please try another.'),283 'invalid_filetype' => __('Sorry, this file type is not permitted for security reasons.'), 284 284 'not_an_image' => __('This file is not an image. Please try another.'), 285 285 'image_memory_exceeded' => __('Memory exceeded. Please try another smaller file.'),
Note: See TracChangeset
for help on using the changeset viewer.