[wp-trac] [WordPress Trac] #40439: Save progress of intermediate image creation after upload
WordPress Trac
noreply at wordpress.org
Sat Jun 15 01:01:57 UTC 2019
#40439: Save progress of intermediate image creation after upload
-------------------------------------------------+-------------------------
Reporter: mikeschroder | Owner:
| mikeschroder
Type: enhancement | Status: assigned
Priority: high | Milestone: 5.3
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-unit- | Focuses: ui
tests early |
-------------------------------------------------+-------------------------
Comment (by azaozz):
In [changeset:"45538" 45538]:
{{{
#!CommitTicketReference repository="" revision="45538"
Save progress of intermediate image creation after upload. First run.
- Introduces `wp_get_missing_image_subsizes()` and
`wp_update_image_subsizes()` to generate image sub-sizes that are missing
or were not created after the upload.
- Adds a way to display errors that happened while creating sub-sizes.
- Introduces `wp_create_image_subsizes()` intended for use after an image
was uploaded. It saves/updates the image metadata immediately after each
sub-size is created. This fixes the (long standing) problem when some of
the sub-size image files were created but there was a timeout or an error
and the metadata was not saved. Until now such uploads were considered
"failed" which usually resulted in the user trying to upload the same
image again, creating even more "orphan" image files.
Note that the patch also includes some unrelated WPCS fixes.
Props mikeschroder, azaozz.
See #40439.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40439#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list