- Timestamp:
- 09/11/2022 06:53:28 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php
r53760 r54121 688 688 */ 689 689 protected function prepare_links( $id ) { 690 $base = sprintf( '%s/%s', $this->namespace, $this->rest_base );691 692 690 $links = array( 693 691 'self' => array( 694 'href' => rest_url( trailingslashit( $base ) . $id),692 'href' => rest_url( rest_get_route_for_post( $id ) ), 695 693 ), 696 694 'collection' => array( 697 'href' => rest_url( $base),695 'href' => rest_url( rest_get_route_for_post_type_items( $this->post_type ) ), 698 696 ), 699 697 'about' => array(
Note: See TracChangeset
for help on using the changeset viewer.