[wp-trac] [WordPress Trac] #48451: Regression: wp_update_attachment_metadata filter now fires very often and without complete metadata

WordPress Trac noreply at wordpress.org
Wed Nov 6 15:50:57 UTC 2019


#48451: Regression: wp_update_attachment_metadata filter now fires very often and
without complete metadata
-------------------------------------------+---------------------
 Reporter:  ianmjones                      |       Owner:  (none)
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  5.3
Component:  Media                          |     Version:  trunk
 Severity:  normal                         |  Resolution:
 Keywords:  has-patch needs-testing close  |     Focuses:
-------------------------------------------+---------------------

Comment (by azaozz):

 Replying to [comment:13 vanyukov]:
 > which is the recommended way to track images uploads?

 The `wp_generate_attachment_metadata` filter was fixed in #48472 to always
 run at the end of images post-processing after upload. In addition it
 won't run if an image was uploaded but post-processing failed and the new
 attachment and the original image were deleted on the last retry request.
 It is the best hook to use when additional post-processing is needed after
 a successful upload.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48451#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list