WordPress/wp-includes/rest-api/endpoints
spacedmonkey 120b1ab117 REST API: Ensure that the parent link, uses the rest_get_route_for_post function.
In [51962] the `rest_get_route_for_post` function was implemented in all places where link to a post's REST API endpoint is needed. However in this commit, the up link, which links to the parent post of the current object, did not use this function.   

Props Spacedmonkey, SergeyBiryukov.
Fixes #53656.



Built from https://develop.svn.wordpress.org/trunk@52363


git-svn-id: http://core.svn.wordpress.org/trunk@51955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-12-13 15:20:03 +00:00
..
class-wp-rest-application-passwords-controller.php Application Passwords: Various docblock improvements. 2021-10-30 20:26:59 +00:00
class-wp-rest-attachments-controller.php REST API: Add batch support for posts and terms controllers. 2021-11-09 01:59:02 +00:00
class-wp-rest-autosaves-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:16:58 +00:00
class-wp-rest-block-directory-controller.php
class-wp-rest-block-renderer-controller.php
class-wp-rest-block-types-controller.php
class-wp-rest-blocks-controller.php
class-wp-rest-comments-controller.php
class-wp-rest-controller.php
class-wp-rest-edit-site-export-controller.php REST API: Ensure that the export template endpoint returns a valid WP_Error object. 2021-12-07 18:38:02 +00:00
class-wp-rest-global-styles-controller.php REST API: Improve permission handling in global style endpoint. 2021-12-07 20:58:00 +00:00
class-wp-rest-menu-items-controller.php REST API: Fire wp_after_insert_post later in new post object endpoints. 2021-11-30 01:10:08 +00:00
class-wp-rest-menu-locations-controller.php REST API: Introduce Menu management endpoints. 2021-11-09 19:00:01 +00:00
class-wp-rest-menus-controller.php REST API: Introduce Menu management endpoints. 2021-11-09 19:00:01 +00:00
class-wp-rest-pattern-directory-controller.php Docs: Various docblock corrections and improvements. 2021-11-23 21:37:01 +00:00
class-wp-rest-plugins-controller.php
class-wp-rest-post-statuses-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:16:58 +00:00
class-wp-rest-post-types-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:16:58 +00:00
class-wp-rest-posts-controller.php REST API: Ensure that the parent link, uses the rest_get_route_for_post function. 2021-12-13 15:20:03 +00:00
class-wp-rest-revisions-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:16:58 +00:00
class-wp-rest-search-controller.php
class-wp-rest-settings-controller.php
class-wp-rest-sidebars-controller.php Docs: Capitalize "ID", when referring to a widget ID or sidebar ID, in a more consistent way. 2021-12-13 10:21:07 +00:00
class-wp-rest-site-health-controller.php
class-wp-rest-taxonomies-controller.php Docs: Add a @since note for the rest_namespace argument of register_post_type() and register_taxonomy(). 2021-11-01 14:31:00 +00:00
class-wp-rest-templates-controller.php Coding Standards: Correct alignment in blocks.php and class-wp-rest-templates-controller. 2021-12-07 22:49:59 +00:00
class-wp-rest-terms-controller.php REST API: Add batch support for posts and terms controllers. 2021-11-09 01:59:02 +00:00
class-wp-rest-themes-controller.php Update @wordpress packages 2021-11-30 00:24:27 +00:00
class-wp-rest-url-details-controller.php REST API: Use global transients for URL details endpoint. 2021-12-03 11:36:09 +00:00
class-wp-rest-users-controller.php Add Site Editor and PHP changes from Gutenberg 10.1 - 11.9 2021-11-09 02:17:17 +00:00
class-wp-rest-widget-types-controller.php I18N: Remove redundant default text domain parameter in some __() calls. 2021-11-30 08:33:05 +00:00
class-wp-rest-widgets-controller.php Docs: Capitalize "ID", when referring to a widget ID or sidebar ID, in a more consistent way. 2021-12-13 10:21:07 +00:00