mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-03 14:17:06 +00:00
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:
@@ -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 ) ) {
|
||||
|
||||
@@ -809,7 +809,7 @@ function get_tax_sql( $tax_query, $primary_table, $primary_id_column ) {
|
||||
* @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
|
||||
* a WP_Term object, an associative array, or a numeric array, respectively. Default OBJECT.
|
||||
* @param string $filter Optional, default is raw or no WordPress defined filter will applied.
|
||||
* @return array|WP_Term|WP_Error|null Object of the type specified by `$output` on success. When `$output` is 'OBJECT',
|
||||
* @return WP_Term|array|WP_Error|null Object of the type specified by `$output` on success. When `$output` is 'OBJECT',
|
||||
* a WP_Term instance is returned. If taxonomy does not exist, a WP_Error is
|
||||
* returned. Returns null for miscellaneous failure.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user