Skip to content

Commit

Permalink
Docs: Improve docblock for `WP_REST_Template_Revisions_Controller::ge…
Browse files Browse the repository at this point in the history
…t_parent()`.

Props rockfire.
See #60699, #61113.
Built from https://develop.svn.wordpress.org/trunk@58156


git-svn-id: https://core.svn.wordpress.org/trunk@57619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
swissspidy committed May 15, 2024
1 parent 85a5e72 commit 71266c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,15 @@ public function register_routes() {
}

/**
* 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(
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 71266c6

Please sign in to comment.