[wp-trac] [WordPress Trac] #45169: Clarify the discrepancy between the default $scheme values in rest_url() and get_rest_url()

WordPress Trac noreply at wordpress.org
Sun Sep 22 19:14:13 UTC 2019


#45169: Clarify the discrepancy between the default $scheme values in rest_url()
and get_rest_url()
--------------------------+-------------------------
 Reporter:  DrewAPicture  |       Owner:  kadamwhite
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.3
Component:  REST API      |     Version:  4.4
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+-------------------------
Changes (by kadamwhite):

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


Comment:

 In [changeset:"46233" 46233]:
 {{{
 #!CommitTicketReference repository="" revision="46233"
 REST API: Consistently default URL scheme to "rest", not "json".

 The "json" scheme is a holdover from the pre-merge plugin version of the
 REST API, and was corrected elsewhere in core in [34300]. Only "rest" is
 officially supported in `set_url_scheme()`.

 Props DrewAPicture, rmccue.
 Fixes #45169.
 }}}

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


More information about the wp-trac mailing list