[wp-trac] [WordPress Trac] #19200: Introduce themes_url() and upload_url()

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 8 00:51:27 UTC 2011


#19200: Introduce themes_url() and upload_url()
-------------------------+------------------------------
 Reporter:  ramiy        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------
Changes (by mikeschinkel):

 * cc: mikeschinkel@… (added)


Comment:

 Replying to [comment:1 scribu]:
 > We already have wp_upload_dir().

 `wp_upload_dir()` returns an array and since PHP does not allow indexing
 the return values of a function -- i.e. since this is not valid in PHP:
 `wp_upload_dir()['baseurl']` -- it would be really nice to have an
 `upload_url()` function, for consistency with the others if nothing else.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19200#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list