[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
Sun Apr 2 12:59:46 UTC 2023


#58043: Mention Default Value at comment for $parent_post_id Param in
wp_insert_attachment() Function
--------------------------+-------------------------------
 Reporter:  wpfy          |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.3
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  coding-standards
--------------------------+-------------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55617" 55617]:
 {{{
 #!CommitTicketReference repository="" revision="55617"
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58043#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list