mirror of
git://develop.git.wordpress.org/
synced 2025-03-19 11:29:48 +01:00
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:
parent
2eed880735
commit
77059b1723
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user