[wp-trac] [WordPress Trac] #47987: REST API: Add handling of PHP fatal errors while resizing images after upload

WordPress Trac noreply at wordpress.org
Wed Oct 2 00:05:19 UTC 2019


#47987: REST API: Add handling of PHP fatal errors while resizing images after
upload
-------------------------------------------------+-------------------------
 Reporter:  azaozz                               |       Owner:
                                                 |  TimothyBlynJacobs
     Type:  task (blessed)                       |      Status:  accepted
 Priority:  highest omg bbq                      |   Milestone:  5.3
Component:  REST API                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests dev-      |     Focuses:
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by azaozz):

 In 47987.3.diff:
 - Based on 47987.2.diff.
 - Handle the three "steps" as
 [https://core.trac.wordpress.org/ticket/47987#comment:20 outlined above]
 when uploading images.
 - Some minor cleanup, also removed modification of _wp_set_upload_ref().
 It is a simple wrapper for set_transient, seems best to keep returning a
 boolean.

 Tested with the current code but not the new functionality to retry to
 create image sub-sizes.

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


More information about the wp-trac mailing list