[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
Tue Nov 5 18:13:50 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):

 > Makes sense if there is a chance that clearer indicators of the stages
 of upload might be added via the other ticket.

 The `wp_generate_attachment_metadata` filter now runs after an uploaded
 image has been post-processed, see #48472.

 A possible alternative would be to pass more context to
 `wp_update_attachment_metadata`. It won't prevent it from running but may
 be useful when a plugin wants to avoid filtering on interim updates.

 To be on the "safe side" thinking we should still keep this open for 1-2
 days, hopefully there will be more feedback after
 https://make.wordpress.org/core/2019/11/05/use-of-the-
 wp_update_attachment_metadata-filter-as-upload-is-complete-hook/.

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


More information about the wp-trac mailing list