WordPress.org

Make WordPress Core

Ticket #45169: 45169.1.diff

File 45169.1.diff, 705 bytes (added by kadamwhite, 2 years ago)
  • src/wp-includes/rest-api.php

    diff --git src/wp-includes/rest-api.php src/wp-includes/rest-api.php
    index 68f13c2ac1..8c809c89ba 100644
    function get_rest_url( $blog_id = null, $path = '/', $scheme = 'rest' ) { 
    411411 * @since 4.4.0
    412412 *
    413413 * @param string $path   Optional. REST route. Default empty.
    414  * @param string $scheme Optional. Sanitization scheme. Default 'json'.
     414 * @param string $scheme Optional. Sanitization scheme. Default 'rest'.
    415415 * @return string Full URL to the endpoint.
    416416 */
    417 function rest_url( $path = '', $scheme = 'json' ) {
     417function rest_url( $path = '', $scheme = 'rest' ) {
    418418        return get_rest_url( null, $path, $scheme );
    419419}
    420420