Make WordPress Core


Ignore:
Timestamp:
01/12/2017 06:28:32 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Media: Use a consistent error message for file type errors on uploading.

Props pavelevap, jackreichert.
Fixes #33242.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r39684 r39891  
    281281        'file_exceeds_size_limit' => __('%s exceeds the maximum upload size for this site.'),
    282282        '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.'),
    284284        'not_an_image' => __('This file is not an image. Please try another.'),
    285285        'image_memory_exceeded' => __('Memory exceeded. Please try another smaller file.'),
Note: See TracChangeset for help on using the changeset viewer.