WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/04/2019 01:10:57 AM (7 weeks ago)
Author:
azaozz
Message:

Uploads: After an image is uploaded and PHP times out or runs out of memory during post-processing (the server response is HTTP 500 error), try to resize it three more times. Then, if all attempts fail, do a cleanup of any sub-sizes that may have been created and show an error message asking the user to scale the image and upload it again.

See #47872.

File:
1 edited

Legend:

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

    r45932 r45934  
    11261126        'missing_upload_url'        => __( 'There was a configuration error. Please contact the server administrator.' ),
    11271127        'upload_limit_exceeded'     => __( 'You may only upload 1 file.' ),
    1128         'http_error'                => __( 'HTTP error.' ),
     1128        'http_error'                => __( 'Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.' ),
     1129        'http_error_image'          => __( 'Post-processing of the image failed. If this is a photo or a large image, please scale it down to 2500px and upload it again.' ),
    11291130        'upload_failed'             => __( 'Upload failed.' ),
    11301131        /* translators: 1: Opening link tag, 2: Closing link tag. */
Note: See TracChangeset for help on using the changeset viewer.