[wp-trac] [WordPress Trac] #33963: New function: `upload_url()`
WordPress Trac
noreply at wordpress.org
Sun Oct 4 10:37:12 UTC 2015
#33963: New function: `upload_url()`
---------------------------------------------+-----------------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Upload | Review
Severity: normal | Version:
Keywords: reporter-feedback needs-refresh | Resolution:
| Focuses:
---------------------------------------------+-----------------------------
Comment (by swissspidy):
> What's the use case for needing the URL for the uploads directory?
Perhaps we could use this function at various places in core where
`$upload_dir['url']` is accessed directly?
`$url = upload_url()` isn't much of an improvement over `$upload_dir =
wp_upload_dir(); $url = $upload_dir['url']` though.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33963#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list