mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-12 18:42:03 +01:00
Doc update for [15402]. fixes #14301.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3730d14fa2
commit
34e43c7bce
@ -2613,7 +2613,7 @@ function wp_add_post_tags($post_id = 0, $tags = '') {
|
||||
* @param int $post_id Post ID.
|
||||
* @param string $tags The tags to set for the post, separated by commas.
|
||||
* @param bool $append If true, don't delete existing tags, just add on. If false, replace the tags with the new tags.
|
||||
* @return bool|null Will return false if $post_id is not an integer or is 0. Will return null otherwise
|
||||
* @return mixed Array of affected term IDs. WP_Error or false on failure.
|
||||
*/
|
||||
function wp_set_post_tags( $post_id = 0, $tags = '', $append = false ) {
|
||||
return wp_set_post_terms( $post_id, $tags, 'post_tag', $append);
|
||||
@ -2628,7 +2628,7 @@ function wp_set_post_tags( $post_id = 0, $tags = '', $append = false ) {
|
||||
* @param int $post_id Post ID.
|
||||
* @param string $tags The tags to set for the post, separated by commas.
|
||||
* @param bool $append If true, don't delete existing tags, just add on. If false, replace the tags with the new tags.
|
||||
* @return bool|null Will return false if $post_id is not an integer or is 0. Will return null otherwise
|
||||
* @return mixed Array of affected term IDs. WP_Error or false on failure.
|
||||
*/
|
||||
function wp_set_post_terms( $post_id = 0, $tags = '', $taxonomy = 'post_tag', $append = false ) {
|
||||
$post_id = (int) $post_id;
|
||||
|
Loading…
Reference in New Issue
Block a user