Changeset 43973 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
- Timestamp:
- 12/11/2018 04:00:37 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 (added) merged: 43681
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r43604 r43973 376 376 // Wrap the data in a response object. 377 377 $response = rest_ensure_response( $data ); 378 $response->add_links( $links ); 378 379 foreach ( $links as $rel => $rel_links ) { 380 foreach ( $rel_links as $link ) { 381 $response->add_link( $rel, $link['href'], $link['attributes'] ); 382 } 383 } 379 384 380 385 /**
Note: See TracChangeset
for help on using the changeset viewer.