Docs: Various documentation fixes for unit test factories.

See #48303.

git-svn-id: https://develop.svn.wordpress.org/trunk@46985 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2019-12-18 00:17:54 +00:00
parent 99ddfa0195
commit a3e674d4f9
9 changed files with 40 additions and 40 deletions

View File

@@ -4150,7 +4150,7 @@ function wp_insert_post( $postarr, $wp_error = false ) {
* @param array|object $postarr Optional. Post data. Arrays are expected to be escaped,
* objects are not. Default array.
* @param bool $wp_error Optional. Allow return of WP_Error on failure. Default false.
* @return int|WP_Error The value 0 or WP_Error on failure. The post ID on success.
* @return int|WP_Error The post ID on success. The value 0 or WP_Error on failure.
*/
function wp_update_post( $postarr = array(), $wp_error = false ) {
if ( is_object( $postarr ) ) {