Changeset 52363
- Timestamp:
- 12/13/2021 03:19:01 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r52079 r52363 2040 2040 if ( $post_type_obj->hierarchical && ! empty( $post->post_parent ) ) { 2041 2041 $links['up'] = array( 2042 'href' => rest_url( trailingslashit( $base ) . (int) $post->post_parent),2042 'href' => rest_url( rest_get_route_for_post( $post->post_parent ) ), 2043 2043 'embeddable' => true, 2044 2044 );
Note: See TracChangeset
for help on using the changeset viewer.