[wp-trac] [WordPress Trac] #47872: Try to create image sub-sizes again when uploading fails with a PHP fatal error

WordPress Trac noreply at wordpress.org
Tue Oct 22 15:13:10 UTC 2019


#47872: Try to create image sub-sizes again when uploading fails with a PHP fatal
error
-------------------------------------------------+-------------------------
 Reporter:  azaozz                               |       Owner:  azaozz
     Type:  enhancement                          |      Status:  closed
 Priority:  high                                 |   Milestone:  5.3
Component:  Upload                               |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-testing has-         |     Focuses:
  screenshots close has-dev-note                 |
-------------------------------------------------+-------------------------

Comment (by GregLone):

 Hello.

 It became really difficult to launch an action after all thumbnails are
 created.
 So far we could use `wp_generate_attachment_metadata`,
 `wp_update_attachment_metadata`, `updated_post_meta`, or `added_post_meta`
 hooks, which was already complicated, but now it became almost impossible.
 Is it possible to create new hooks for that purpose?

 Unrelated, what I believe are typos:
 - `_legasy_support` => `_legacy_support`?
 - `// the cliend doesn't know the attachment ID yet.` => `// the client
 doesn't know the attachment ID yet.`?

 Thanks.

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


More information about the wp-trac mailing list