Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#34300 closed task (blessed) (fixed)

Update the $scheme parameter in get_rest_url()

Reported by: johnbillion's profile johnbillion Owned by: drewapicture's profile DrewAPicture
Milestone: 4.4 Priority: normal
Severity: normal Version: 4.4
Component: REST API Keywords: has-patch
Focuses: docs Cc:


The default value of the $scheme parameter in get_rest_url() is json. This should be changed to rest, and documentation for this value should be added to get_home_url(), home_url(), and set_url_scheme().

Attachments (1)

34300.patch (4.4 KB) - added by rachelbaker 9 years ago.
get_rest_url should default to a scheme of rest

Download all attachments as: .zip

Change History (7)

9 years ago

get_rest_url should default to a scheme of rest

#1 @rachelbaker
9 years ago

  • Keywords has-patch added; needs-patch removed
  • Owner set to rachelbaker
  • Status changed from new to assigned

#2 @rachelbaker
9 years ago

  • Focuses docs added

#3 @DrewAPicture
9 years ago

  • Owner changed from rachelbaker to johnbillion
  • Status changed from assigned to reviewing

#4 @DrewAPicture
9 years ago

  • Owner changed from johnbillion to DrewAPicture

Whoops :)

#5 @DrewAPicture
9 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 35274:

Docs: Update the default scheme for get_rest_url() from 'json' to 'rest'.

Also adds 'rest' to the documented list of schemes for home_url(), get_home_url(), set_url_scheme(), and the home_url and set_url_scheme hooks.

Props rachelbaker.
Fixes #34300.

This ticket was mentioned in Slack in #core-restapi by rachelbaker. View the logs.

9 years ago

Note: See TracTickets for help on using tickets.