[wp-trac] [WordPress Trac] #48200: Fix the method used to create image sub-sizes when uploading fails with a PHP fatal error

WordPress Trac noreply at wordpress.org
Mon Oct 7 15:08:58 UTC 2019


#48200: Fix the method used to create image sub-sizes when uploading fails with a
PHP fatal error
--------------------------+-----------------------
 Reporter:  azaozz        |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  reopened
 Priority:  high          |   Milestone:  5.3
Component:  Upload        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------

Comment (by azaozz):

 Replying to [comment:6 TimothyBlynJacobs]:

 Thinking more about this, 48200.2.diff looks better :) You're right, no
 point in setting a header every time `_wp_make_subsizes()` runs.

 Lets do it this way, and (if there's enough time" can try to remove the
 header "pass-through" from `wp_ajax_media_create_image_subsizes()`.

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


More information about the wp-trac mailing list