Docs: Add missing @param to wp_set_unique_slug_on_create_template_part().
Follow-up to [52062]. See #53399. Built from https://develop.svn.wordpress.org/trunk@52303 git-svn-id: http://core.svn.wordpress.org/trunk@51895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user