WordPress.org

Make WordPress Core

Ticket #53162: 53162.1.diff

File 53162.1.diff, 569 bytes (added by audrasjb, 3 months ago)

Use DevHub direct link instead, to avoid an unnecessary redirection

  • src/wp-includes/rest-api/class-wp-rest-server.php

    diff --git a/src/wp-includes/rest-api/class-wp-rest-server.php b/src/wp-includes/rest-api/class-wp-rest-server.php
    index 1e85d57cd4..f9e35bdcbf 100644
    a b class WP_REST_Server { 
    12261226                );
    12271227
    12281228                $response = new WP_REST_Response( $available );
    1229                 $response->add_link( 'help', 'http://v2.wp-api.org/' );
     1229                $response->add_link( 'help', 'https://developer.wordpress.org/rest-api/' );
    12301230                $this->add_active_theme_link_to_index( $response );
    12311231
    12321232                /**