Make WordPress Core

Changeset 35650


Ignore:
Timestamp:
11/17/2015 02:23:52 AM (9 years ago)
Author:
rmccue
Message:

REST API: Change link relations to api.w.org

Fixes #34303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/rest-functions.php

    r35474 r35650  
    532532    }
    533533
    534     echo "<link rel='https://github.com/WP-API/WP-API' href='" . esc_url( $api_root ) . "' />\n";
     534    echo "<link rel='https://api.w.org/' href='" . esc_url( $api_root ) . "' />\n";
    535535}
    536536
     
    551551    }
    552552
    553     header( 'Link: <' . esc_url_raw( $api_root ) . '>; rel="https://github.com/WP-API/WP-API"', false );
     553    header( 'Link: <' . esc_url_raw( $api_root ) . '>; rel="https://api.w.org/"', false );
    554554}
    555555
Note: See TracChangeset for help on using the changeset viewer.