[wp-trac] [WordPress Trac] #39522: Avoidable PHP Warning thrown in _wp_handle_upload

WordPress Trac noreply at wordpress.org
Mon Jan 9 19:08:10 UTC 2017


#39522: Avoidable PHP Warning thrown in _wp_handle_upload
-------------------------------------+------------------------------
 Reporter:  dglingren                |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Media                    |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------------

Comment (by dglingren):

 Thank you for your quick action on this ticket. I applied the patch to my
 test system and ran a few tests. Trying to process an invalid "tmp_name"
 now returns the expected "Specified file failed upload test." error and no
 longer throws a PHP Warning. The patch looks good to me.

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


More information about the wp-trac mailing list