Make WordPress Core

Ticket #34303: 34303.diff

File 34303.diff, 699 bytes (added by rmccue, 9 years ago)

Change link relations to api.w.org

  • wp-includes/rest-api/rest-functions.php

     
    526526                return;
    527527        }
    528528
    529         echo "<link rel='https://github.com/WP-API/WP-API' href='" . esc_url( $api_root ) . "' />\n";
     529        echo "<link rel='https://api.w.org/' href='" . esc_url( $api_root ) . "' />\n";
    530530}
    531531
    532532/**
     
    545545                return;
    546546        }
    547547
    548         header( 'Link: <' . esc_url_raw( $api_root ) . '>; rel="https://github.com/WP-API/WP-API"', false );
     548        header( 'Link: <' . esc_url_raw( $api_root ) . '>; rel="https://api.w.org/"', false );
    549549}
    550550
    551551/**