[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
Wed Jun 17 06:00:10 UTC 2015
#32564: media_sideload_image() does not return 'src' when 'src' is passed as return
parameter
--------------------------+-------------------------
Reporter: brs14ku | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Media | Version: 4.2.2
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
--------------------------+-------------------------
Changes (by dd32):
* status: new => closed
* resolution: => worksforme
* milestone: Awaiting Review =>
Comment:
This works for me.
> {{{var_dump( media_sideload_image( 'http://example.com/test-
images/dolomites.jpg', 0, '', 'src' ) );}}}
> returns: {{{http://example.com/wp-
content/uploads/2015/06/dolomites.jpg}}}
Feel free to re-open with an example case that fails.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32564#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list