Docs: Improve description for edit_post().

Props stevenlinx.
Fixes #50713.

git-svn-id: https://develop.svn.wordpress.org/trunk@48529 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-07-21 12:47:58 +00:00
parent 0f86642b82
commit ea352ee2ab

View File

@ -224,11 +224,16 @@ function _wp_get_allowed_postdata( $post_data = null ) {
/**
* Update an existing post with values provided in $_POST.
*
* If post data is passed as an argument, it is treated as an array of data
* keyed appropriately for turning into a post object.
*
* If post data is not passed, the $_POST global variable is used instead.
*
* @since 1.5.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param array $post_data Optional.
* @param array $post_data Optional. Defaults to the $_POST global.
* @return int Post ID.
*/
function edit_post( $post_data = null ) {