Make WordPress Core

Changeset 55617

Timestamp:
04/02/2023 12:59:32 PM (16 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r55569 r55617  
    61366136 *
    61376137 * @param string|array $args             Arguments for inserting an attachment.
    6138  * @param string|false $file             Optional. Filename.
    6139  * @param int          $parent_post_id   Optional. Parent post ID.
     6138 * @param string|false $file             Optional. Filename.
     6139 * @param int          $parent_post_id   Optional. Parent post ID.
    61406140 * @param bool         $wp_error         Optional. Whether to return a WP_Error on failure. Default false.
    61416141 * @param bool         $fire_after_hooks Optional. Whether to fire the after insert hooks. Default true.
Note: See TracChangeset for help on using the changeset viewer.