[wp-trac] [WordPress Trac] #32564: media_sideload_image() does not return 'src' when 'src' is passed as return parameter

WordPress Trac noreply at wordpress.org
Thu Jun 4 02:50:16 UTC 2015


#32564: media_sideload_image() does not return 'src' when 'src' is passed as return
parameter
--------------------------+-----------------------------
 Reporter:  brs14ku       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.2.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Function returns either WP_Error or the html image tag with the src in it.
 It doesn't return just the source when specifying it as the return
 parameter as the docs state here
 [https://developer.wordpress.org/reference/functions/media_sideload_image/]

 Ticket #19629 is a request to add a return option of the id as an
 enhancement. This however, seems like a bug.

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


More information about the wp-trac mailing list