From aed826aab12bbeffdc3495a344f6c1acc8140884 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 4 Nov 2020 01:37:21 +0000 Subject: [PATCH] Docs: Add a reference to `wp_insert_post()` for information on the arguments accepted by `wp_update_post()`. See #50768. git-svn-id: https://develop.svn.wordpress.org/trunk@49493 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 803b91ca27..65c9e32d1e 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -4327,7 +4327,8 @@ function wp_insert_post( $postarr, $wp_error = false, $fire_after_hooks = true ) * @since 5.6.0 Added the `fire_after_hooks` parameter. * * @param array|object $postarr Optional. Post data. Arrays are expected to be escaped, - * objects are not. Default array. + * objects are not. See wp_insert_post() for accepted arguments. + * Default array. * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. * @param bool $fire_after_hooks Optional. Whether to fire the after insert hooks. Default true. * @return int|WP_Error The post ID on success. The value 0 or WP_Error on failure.