Skip to content

Commit dc6ce7a

Browse files
Docs: Improve description for wp_insert_post().
Follow-up to [6379], [8669]. Props rutujaparamane2004. See #64224. git-svn-id: https://develop.svn.wordpress.org/trunk@61275 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9f0e3b6 commit dc6ce7a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/wp-includes/post.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4435,9 +4435,10 @@ function wp_get_recent_posts( $args = array(), $output = ARRAY_A ) {
44354435
}
44364436

44374437
/**
4438-
* Inserts or update a post.
4438+
* Inserts or updates a post in the database.
44394439
*
4440-
* If the $postarr parameter has 'ID' set to a value, then post will be updated.
4440+
* If the `$postarr` parameter contains an 'ID', the corresponding post will be updated.
4441+
* If not, a new post will be created using the values provided.
44414442
*
44424443
* You can set the post date manually, by setting the values for 'post_date'
44434444
* and 'post_date_gmt' keys. You can close the comments or open the comments by

0 commit comments

Comments
 (0)