[wp-trac] [WordPress Trac] #25449: wp_upload_dir() doesn't support https

WordPress Trac noreply at wordpress.org
Sun Mar 15 21:14:04 UTC 2015


#25449: wp_upload_dir() doesn't support https
--------------------------+------------------------------
 Reporter:  ryanhellyer   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Upload        |     Version:  3.8
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by joemcgill):

 The eventual fix for the related issue in #15928 was to only switch
 schemes when the request was coming from the same sever as the `site_url`
 so we could be sure that SSL was available on that server. It may be worth
 moving that switch upstream from `wp_get_attachment_url()` to
 `wp_upload_dir()` in order to kill two birds with one stone.

 In the mean time, the `wp_upload_dir()` is based off the scheme set for
 your `site_url` which can be set in the site admin.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/25449#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list