Changeset 45566
- Timestamp:
- 06/26/2019 06:06:32 PM (5 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r45424 r45566 1396 1396 $server = rest_get_server(); 1397 1397 $data = (array) $response->get_data(); 1398 $links = $server ->get_compact_response_links( $response );1398 $links = $server::get_compact_response_links( $response ); 1399 1399 if ( ! empty( $links ) ) { 1400 1400 $data['_links'] = $links; -
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r43582 r45566 311 311 $request->set_file_params( $_FILES ); 312 312 $request->set_headers( $this->get_headers( wp_unslash( $_SERVER ) ) ); 313 $request->set_body( $this->get_raw_data() );313 $request->set_body( self::get_raw_data() ); 314 314 315 315 /* … … 438 438 public function response_to_data( $response, $embed ) { 439 439 $data = $response->get_data(); 440 $links = $this->get_compact_response_links( $response );440 $links = self::get_compact_response_links( $response ); 441 441 442 442 if ( ! empty( $links ) ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php
r44546 r45566 213 213 $data = (array) $response->get_data(); 214 214 $server = rest_get_server(); 215 $links = $server ->get_compact_response_links( $response );215 $links = $server::get_compact_response_links( $response ); 216 216 217 217 if ( ! empty( $links ) ) {
Note: See TracChangeset
for help on using the changeset viewer.