[wp-trac] [WordPress Trac] #48451: Regression: wp_update_attachment_metadata filter now fires very often and without compete metadata
WordPress Trac
noreply at wordpress.org
Mon Oct 28 21:13:19 UTC 2019
#48451: Regression: wp_update_attachment_metadata filter now fires very often and
without compete metadata
-------------------------------------+---------------------
Reporter: ianmjones | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.3
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch 2nd-opinion | Focuses:
-------------------------------------+---------------------
Comment (by azaozz):
Looking again at the proposed `wp_update_image_subsizes` action in
https://core.trac.wordpress.org/attachment/ticket/47872/47872.3.diff.
Think the problem reported here is related and would be better to handle
that on this ticket. Both are about firing a hook after an image has been
uploaded and all sub-sizes were created successfully.
Perhaps it would be better to fire `wp_generate_attachment_metadata` and
then save the meta again with `wp_update_attachment_metadata()` at the end
of `wp_update_image_subsizes()`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48451#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list