[wp-trac] [WordPress Trac] #48472: The "wp_generate_attachment_metadata" filter is not fired when the initial upload request fails but the upload was completed successfully by retrying to create image sub-sizes
WordPress Trac
noreply at wordpress.org
Wed Oct 30 18:44:29 UTC 2019
#48472: The "wp_generate_attachment_metadata" filter is not fired when the initial
upload request fails but the upload was completed successfully by retrying
to create image sub-sizes
--------------------------+-----------------------------
Reporter: azaozz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
After #47872 it became possible to successfully complete an uploaded image
post-processing even when the initial upload request resulted in a server
error/PHP running out of resources.
However when that happens the `wp_generate_attachment_metadata` filter is
never reached and is not fired as expected. As this is the de-facto
"upload is now completed successfully" hook, it causes problems in both
updating/filtering the metadata on successful uploads and when using it to
trigger additional post-processing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48472>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list