Opened 18 months ago
Closed 18 months ago
#58043 closed defect (bug) (fixed)
Mention Default Value at comment for $parent_post_id Param in wp_insert_attachment() Function
Reported by: | wpfy | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | normal | Version: | 6.3 |
Component: | Media | Keywords: | has-patch |
Focuses: | coding-standards | Cc: |
Description
In the WordPress core file, /wp-includes/post.php, on line 6310, there is a missing default value for the $parent_post_id parameter in the wp_insert_attachment() function. The $parent_post_id parameter is optional and is used to specify the ID of the parent post for the current post being inserted. However, the current documentation does not include a default value for this parameter in the comment.
Change History (3)
This ticket was mentioned in PR #4279 on WordPress/wordpress-develop by @wpfy.
18 months ago
#1
- Keywords has-patch added; needs-patch removed
Note: See
TracTickets for help on using
tickets.
In the WordPress core file, /wp-includes/post.php, on line 6310, there is a missing default value for the $parent_post_id parameter in the wp_insert_attachment() function. The $parent_post_id parameter is optional and is used to specify the ID of the parent post for the current post being inserted. However, the current documentation does not include a default value for this parameter in the comment.
Trac ticket: https://core.trac.wordpress.org/ticket/58043