Make WordPress Core


Ignore:
Timestamp:
06/23/2021 10:19:54 PM (3 years ago)
Author:
iandunn
Message:

Media: Revert r51211 to restore ms-files.php assets.

r51211 accidentally introduced a fatal error for Multisite instances with ms_files_rewriting enabled. Reverting removes the error, and the original purpose of the commit can be solved in another way.

Props otto42, barry, ryelle, azaozz.
Fixes #53492. See #53475.

File:
1 edited

Legend:

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

    r51221 r51223  
    852852        'file_exceeds_size_limit'   => __( '%s exceeds the maximum upload size for this site.' ),
    853853        'zero_byte_file'            => __( 'This file is empty. Please try another.' ),
    854         'invalid_filetype'          => __( 'Sorry, this file type is not supported.' ),
     854        'invalid_filetype'          => __( 'Sorry, this file type is not permitted for security reasons.' ),
    855855        'not_an_image'              => __( 'This file is not an image. Please try another.' ),
    856856        'image_memory_exceeded'     => __( 'Memory exceeded. Please try another smaller file.' ),
Note: See TracChangeset for help on using the changeset viewer.