[wp-trac] [WordPress Trac] #41977: media_handle_upload() un required second parameter

WordPress Trac noreply at wordpress.org
Thu Jun 20 12:35:08 UTC 2019


#41977: media_handle_upload() un required second parameter
-------------------------------+------------------------------
 Reporter:  Tkama              |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:  2.5
 Severity:  normal             |  Resolution:
 Keywords:  close 2nd-opinion  |     Focuses:
-------------------------------+------------------------------
Changes (by desrosj):

 * keywords:   => close 2nd-opinion
 * version:  4.8.2 => 2.5
 * component:  General => Media


Comment:

 Hi @Tkama,

 I don't know that there's any real benefit to making this change. Future
 function calls would no longer require the parameter, but requiring the
 parameter also requires the developer to make a conscious decision about
 where the image should be attached, if at all.

 Marking as a `close` candidate, but also for a `2nd-opinion`.

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


More information about the wp-trac mailing list