[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 May 25 18:01:18 UTC 2017


#36451: get_rest_url() not returning SSL version of the URL when the home_url it's
a subdomain
-------------------------+-------------------------------------------------
 Reporter:  nicholas_io  |       Owner:  johnbillion
     Type:  defect       |      Status:  closed
  (bug)                  |   Milestone:  4.8
 Priority:  normal       |     Version:  4.4
Component:  REST API     |  Resolution:  fixed
 Severity:  major        |     Focuses:  administration, multisite, rest-
 Keywords:  https        |  api
-------------------------+-------------------------------------------------
Changes (by johnbillion):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40843"]:
 {{{
 #!CommitTicketReference repository="" revision="40843"
 REST API: In the admin area, ensure the REST API endpoint URL is forced to
 `https` when necessary.

 In this situation, a site which uses `http` on the front end but `https`
 in the admin area is more likely to have a working REST API endpoint URL
 when used in the admin area.

 Props mohanjith, westonruter, jnylen0

 Fixes #36451
 }}}

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


More information about the wp-trac mailing list