Docs: Add a reference to `wp_insert_post()` for information on the arguments accepted by `wp_update_post()`.
See #50768. Built from https://develop.svn.wordpress.org/trunk@49493 git-svn-id: http://core.svn.wordpress.org/trunk@49252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4be65decb7
commit
618fb979c6
|
@ -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.
|
* @since 5.6.0 Added the `fire_after_hooks` parameter.
|
||||||
*
|
*
|
||||||
* @param array|object $postarr Optional. Post data. Arrays are expected to be escaped,
|
* @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 $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.
|
* @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.
|
* @return int|WP_Error The post ID on success. The value 0 or WP_Error on failure.
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.6-beta3-49492';
|
$wp_version = '5.6-beta3-49493';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue