[wp-trac] [WordPress Trac] #36451: get_rest_url() not returning SSL version of the URL when the home_url it's a subdomain

WordPress Trac noreply at wordpress.org
Thu Nov 3 20:44:36 UTC 2016


#36451: get_rest_url() not returning SSL version of the URL when the home_url it's
a subdomain
--------------------------+------------------------------
 Reporter:  nicholas_io   |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  4.4
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by jnylen0):

 I don't see anything we should do here either - the mentioned block of
 code is a special case that only turns SSL *on* under fairly unique
 circumstances.

 The real issue in the report is probably that `get_home_url` is not
 returning an `https:` URL; once that is fixed, the REST will fall into
 place.

 If there were any special situations where that wouldn't work, then
 there's a `rest_url` filter that could be used instead.

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


More information about the wp-trac mailing list