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
This commit is contained in:
Jb Audras 2021-12-01 23:59:55 +00:00
parent 2eed880735
commit 77059b1723

View File

@ -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