diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
index df509fd114..146d1147b5 100644
|
a
|
b
|
function wp_set_post_tags( $post_id = 0, $tags = '', $append = false ) { |
| 5209 | 5209 | * @see wp_set_object_terms() |
| 5210 | 5210 | * |
| 5211 | 5211 | * @param int $post_id Optional. The Post ID. Does not default to the ID of the global $post. |
| 5212 | | * @param string|array $tags Optional. An array of terms to set for the post, or a string of terms |
| | 5212 | * @param string|array $terms Optional. An array of terms to set for the post, or a string of terms |
| 5213 | 5213 | * separated by commas. Hierarchical taxonomies must always pass IDs rather |
| 5214 | 5214 | * than names so that children with the same names but different parents |
| 5215 | 5215 | * aren't confused. Default empty. |
| … |
… |
function wp_set_post_tags( $post_id = 0, $tags = '', $append = false ) { |
| 5218 | 5218 | * replace the terms with the new terms. Default false. |
| 5219 | 5219 | * @return array|false|WP_Error Array of term taxonomy IDs of affected terms. WP_Error or false on failure. |
| 5220 | 5220 | */ |
| 5221 | | function wp_set_post_terms( $post_id = 0, $tags = '', $taxonomy = 'post_tag', $append = false ) { |
| | 5221 | function wp_set_post_terms( $post_id = 0, $terms = '', $taxonomy = 'post_tag', $append = false ) { |
| 5222 | 5222 | $post_id = (int) $post_id; |
| 5223 | 5223 | |
| 5224 | 5224 | if ( ! $post_id ) { |