Make WordPress Core


Ignore:
Timestamp:
06/26/2019 06:06:32 PM (5 years ago)
Author:
SergeyBiryukov
Message:

REST API: Call WP_REST_Server::get_compact_response_links() and ::get_raw_data() static methods the right way.

Props andizer, TimothyBlynJacobs.
Fixes #47578.

File:
1 edited

Legend:

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

    r45424 r45566  
    13961396        $server = rest_get_server();
    13971397        $data   = (array) $response->get_data();
    1398         $links  = $server->get_compact_response_links( $response );
     1398        $links  = $server::get_compact_response_links( $response );
    13991399        if ( ! empty( $links ) ) {
    14001400            $data['_links'] = $links;
Note: See TracChangeset for help on using the changeset viewer.