[wp-trac] [WordPress Trac] #38119: File is not getting uploaded if the error field in $uploads array is blank
WordPress Trac
noreply at wordpress.org
Wed Aug 30 14:20:05 UTC 2017
#38119: File is not getting uploaded if the error field in $uploads array is blank
-----------------------------+------------------------------
Reporter: PranaliPatel | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version: 4.6.1
Severity: normal | Resolution:
Keywords: has-patch close | Focuses:
-----------------------------+------------------------------
Changes (by azaozz):
* keywords: has-patch => has-patch close
Comment:
Hi @PranaliPatel, thanks for the patch. As far as I see
`$uploads['error']` is checking the type. The default is `false` and
anything else, including `''`, `null`, etc. would mean something may be
wrong. As this is used by low level plugins that tweak the upload
location(s), not sure we can change it without risk of breaking something.
Also, is there a compelling user case to justify such change?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38119#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list