[wp-trac] [WordPress Trac] #64804: REST API: Add finalize endpoint to `WP_REST_Attachments_Controller` for client-side media processing
WordPress Trac
noreply at wordpress.org
Thu Mar 5 17:53:38 UTC 2026
#64804: REST API: Add finalize endpoint to `WP_REST_Attachments_Controller` for
client-side media processing
--------------------------------------+---------------------
Reporter: adamsilverstein | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 7.0
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by westonruter):
@adamsilverstein Would it not make sense to just call
`wp_generate_attachment_metadata()` after each image size is sideloaded?
That way the metadata will be sure to be created even when no `finalize`
request is made (e.g. the client goes offline). Or is the concern that re-
generating the metadata each time would cause relevant plugins to do
redundant work?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64804#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list