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

WordPress Trac noreply at wordpress.org
Mon Sep 25 14:21:06 UTC 2017


#41977: media_handle_upload() un required second parameter
-------------------------+-----------------------------
 Reporter:  Tkama        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  4.8.2
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Why second parameter of `media_handle_upload( $file_id, $post_id )` is
 required?

 It's better to define it as 0 and make it optional. In some cases it's
 more convenient! And we lose nothing if do so...

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


More information about the wp-trac mailing list