mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Docs: Document default values for optional parameters in wp_insert_attachment().
This adds the missing mentions of default value for the `$file` and `$parent_post_id` parameters. Follow-up to [2921], [3092], [3303], [3851], [6155], [6379], [8669], [15590], [28788], [38408], [49936], [55021]. Props wpfy. Fixes #58043. git-svn-id: https://develop.svn.wordpress.org/trunk@55617 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
aa1b3c8bb9
commit
843711f5e0
@ -6135,8 +6135,8 @@ function is_local_attachment( $url ) {
|
||||
* @see wp_insert_post()
|
||||
*
|
||||
* @param string|array $args Arguments for inserting an attachment.
|
||||
* @param string|false $file Optional. Filename.
|
||||
* @param int $parent_post_id Optional. Parent post ID.
|
||||
* @param string|false $file Optional. Filename. Default false.
|
||||
* @param int $parent_post_id Optional. Parent post ID. Default 0.
|
||||
* @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 attachment ID on success. The value 0 or WP_Error on failure.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user