From 796bac86451a4fb626b298181c9ac1f37bc6c441 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sun, 22 Jul 2018 12:25:48 +0000 Subject: [PATCH] Docs: Correct the parameter type for `WP_REST_Post_Types_Controller::prepare_item_for_response()`. Props subrataemfluence Fixes #44437 git-svn-id: https://develop.svn.wordpress.org/trunk@43519 602fd350-edb4-49c9-b593-d223f7449a82 --- .../rest-api/endpoints/class-wp-rest-post-types-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php index 5d8fdd903f..fda0aca360 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php @@ -145,7 +145,7 @@ class WP_REST_Post_Types_Controller extends WP_REST_Controller { * * @since 4.7.0 * - * @param stdClass $post_type Post type data. + * @param WP_Post_Type $post_type Post type object. * @param WP_REST_Request $request Full details about the request. * @return WP_REST_Response Response object. */