[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
Wed Oct 24 21:12:14 UTC 2018


#45169: Clarify the discrepancy between the default $scheme values in rest_url()
and get_rest_url()
--------------------------+-----------------------------
 Reporter:  DrewAPicture  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  4.4
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  docs          |
--------------------------+-----------------------------
 As pointed out by a user on the code reference, `rest_url()` and
 `get_rest_url()` both define different defaults for the `$scheme`
 parameters. `rest_url()` defaults to 'json', and `get_rest_url()` to
 'rest', respectively.

 It would be good to provide notices in both DocBlocks explaining the
 discrepancy.

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


More information about the wp-trac mailing list