Changeset 43681 for branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
- Timestamp:
- 10/08/2018 06:18:25 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r43530 r43681 373 373 // Wrap the data in a response object. 374 374 $response = rest_ensure_response( $data ); 375 $response->add_links( $links ); 375 376 foreach ( $links as $rel => $rel_links ) { 377 foreach ( $rel_links as $link ) { 378 $response->add_link( $rel, $link['href'], $link['attributes'] ); 379 } 380 } 376 381 377 382 /**
Note: See TracChangeset
for help on using the changeset viewer.