[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
Thu Sep 19 20:56:21 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:  accepted
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+------------------------------
Changes (by kadamwhite):

 * keywords:  needs-patch => has-patch
 * owner:  (none) => kadamwhite
 * status:  new => accepted


Comment:

 Update on the previous update: after further investigation it turns out
 this occurrence of `json` was missed in #34300, and `rest` is the
 "correct" term. Some digging through the plugin directory did not
 immediately highlight anywhere this would introduce backwards
 compatibility issues, so I'm uploading a patch which changes the `'json'`
 string to `'rest'`.

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


More information about the wp-trac mailing list