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

WordPress Trac noreply at wordpress.org
Tue Jan 10 01:17:39 UTC 2017


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

Comment (by achbed):

 The only reason I added that is to catch situations where a sideloaded
 file is in a folder that can be read, but is not readable itself due to a
 permissions issue.  `is_file` just validates that the file exists and is a
 "normal" file, not that it's also readable.  We could add a separate
 ticket for that, but I figured that this would be an applicable spot to
 add that check.

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


More information about the wp-trac mailing list