From 37a1552e3957b9feb7109db1322ca987dcec1e56 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Wed, 7 Feb 2018 22:12:50 +0000 Subject: [PATCH] Docs: Copy a helpful inline doc into the function header for visibility. See #42505 git-svn-id: https://develop.svn.wordpress.org/trunk@42664 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index b35930a7b7..ba59019870 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -4099,7 +4099,9 @@ function wp_set_post_tags( $post_id = 0, $tags = '', $append = false ) { * * @param int $post_id Optional. The Post ID. Does not default to the ID of the global $post. * @param string|array $tags Optional. An array of terms to set for the post, or a string of terms - * separated by commas. Default empty. + * separated by commas. Hierarchical taxonomies must always pass IDs rather + * than names so that children with the same names but different parents + * aren't confused. Default empty. * @param string $taxonomy Optional. Taxonomy name. Default 'post_tag'. * @param bool $append Optional. If true, don't delete existing terms, just add on. If false, * replace the terms with the new terms. Default false.