[wp-trac] [WordPress Trac] #58043: Mention Default Value at comment for $parent_post_id Param in wp_insert_attachment() Function
WordPress Trac
noreply at wordpress.org
Sat Apr 1 16:13:20 UTC 2023
#58043: Mention Default Value at comment for $parent_post_id Param in
wp_insert_attachment() Function
------------------------------+-----------------------------
Reporter: wpfy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords: needs-patch
Focuses: coding-standards |
------------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58043>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list