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

Props andizer, TimothyBlynJacobs.
Fixes #47578.

git-svn-id: https://develop.svn.wordpress.org/trunk@45566 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2019-06-26 18:06:32 +00:00
parent fc10b6bbcd
commit 5118e5e266
3 changed files with 4 additions and 4 deletions
@@ -212,7 +212,7 @@ abstract class WP_REST_Controller {
$data = (array) $response->get_data();
$server = rest_get_server();
$links = $server->get_compact_response_links( $response );
$links = $server::get_compact_response_links( $response );
if ( ! empty( $links ) ) {
$data['_links'] = $links;