[wp-trac] [WordPress Trac] #27225: Undefined index: error in wp-admin/includes/file.php on line 261

WordPress Trac noreply at wordpress.org
Thu Feb 27 21:09:42 UTC 2014


#27225: Undefined index: error in wp-admin/includes/file.php on line 261
------------------------------+------------------
 Reporter:  tivnet            |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.9
Component:  Upload            |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------
Changes (by SergeyBiryukov):

 * keywords:   => has-patch commit
 * component:  General => Upload
 * milestone:  Awaiting Review => 3.9


Comment:

 According to http://www.php.net/manual/en/features.file-upload.errors.php,
 `$_FILES['...']['error']` is always set, so apparently it can only be
 missing if it was removed in `wp_handle_upload_prefilter` filter:
 [source:tags/3.8.1/src/wp-admin/includes/file.php#L217].

 We do, however check if it's set in line 223 (added in [12142]), so we
 might as well do the same here.

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


More information about the wp-trac mailing list