From 3c388704879c0f7f7f9f47a937a72dbb67e9647c Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 15 May 2024 11:18:12 +0000 Subject: [PATCH] Docs: Improve docblock for `WP_REST_Template_Revisions_Controller::get_parent()`. Props rockfire. See #60699, #61113. Built from https://develop.svn.wordpress.org/trunk@58156 git-svn-id: http://core.svn.wordpress.org/trunk@57619 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../class-wp-rest-template-revisions-controller.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-template-revisions-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-template-revisions-controller.php index 8d32ecb7c0..22cdc268fa 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-template-revisions-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-template-revisions-controller.php @@ -156,15 +156,15 @@ class WP_REST_Template_Revisions_Controller extends WP_REST_Revisions_Controller } /** - * Gets the parent post, if the ID is valid. + * Gets the parent post, if the template ID is valid. * * @since 6.4.0 * - * @param int $parent_post_id Supplied ID. + * @param string $parent_template_id Supplied ID. * @return WP_Post|WP_Error Post object if ID is valid, WP_Error otherwise. */ - protected function get_parent( $parent_post_id ) { - $template = get_block_template( $parent_post_id, $this->parent_post_type ); + protected function get_parent( $parent_template_id ) { + $template = get_block_template( $parent_template_id, $this->parent_post_type ); if ( ! $template ) { return new WP_Error( diff --git a/wp-includes/version.php b/wp-includes/version.php index bfc3cb70a9..14aaab25b7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58155'; +$wp_version = '6.6-alpha-58156'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.