diff --git src/wp-includes/rest-api.php src/wp-includes/rest-api.php
index e1d8919c8d..fb696a56ac 100644
|
|
function rest_preload_api_request( $memo, $path ) { |
1358 | 1358 | if ( 200 === $response->status ) { |
1359 | 1359 | $server = rest_get_server(); |
1360 | 1360 | $data = (array) $response->get_data(); |
1361 | | if ( method_exists( $server, 'get_compact_response_links' ) ) { |
1362 | | $links = call_user_func( array( $server, 'get_compact_response_links' ), $response ); |
1363 | | } else { |
1364 | | $links = call_user_func( array( $server, 'get_response_links' ), $response ); |
1365 | | } |
| 1361 | $links = $server->get_compact_response_links( $response ); |
1366 | 1362 | if ( ! empty( $links ) ) { |
1367 | 1363 | $data['_links'] = $links; |
1368 | 1364 | } |