From 77059b17232c88b828a3059a902de61cea5d6042 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Wed, 1 Dec 2021 23:59:55 +0000 Subject: [PATCH] Docs: Add missing `@param` to `wp_set_unique_slug_on_create_template_part()`. Follow-up to [52062]. See #53399. git-svn-id: https://develop.svn.wordpress.org/trunk@52303 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/theme-templates.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/theme-templates.php b/src/wp-includes/theme-templates.php index 6659721475..d18575099c 100644 --- a/src/wp-includes/theme-templates.php +++ b/src/wp-includes/theme-templates.php @@ -4,10 +4,11 @@ * Sets a custom slug when creating auto-draft template parts. * * This is only needed for auto-drafts created by the regular WP editor. - * If this page is to be removed, this won't be necessary. + * If this page is to be removed, this will not be necessary. * * @since 5.9.0 * + * @param int $post_id Post ID. */ function wp_set_unique_slug_on_create_template_part( $post_id ) { $post = get_post( $post_id ); @@ -98,7 +99,7 @@ function wp_filter_wp_template_unique_post_slug( $override_slug, $slug, $post_ID } /** - * Print the skip-link script & styles. + * Prints the skip-link script & styles. * * @access private * @since 5.8.0 @@ -204,7 +205,7 @@ function the_block_template_skip_link() { } /** - * Enable the block templates (editor mode) for themes with theme.json by default. + * Enables the block templates (editor mode) for themes with theme.json by default. * * @access private * @since 5.8.0