Make WordPress Core


Ignore:
Timestamp:
06/06/2025 09:29:41 AM (14 months ago)
Author:
SergeyBiryukov
Message:

Docs: Clarify description for ::create_upload_object in the attachment test factory.

Follow-up to [34855], [44497].

See #63166.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php

    r55021 r60289  
    5151
    5252        /**
    53          * Saves an attachment.
     53         * Saves a file as an attachment.
    5454         *
    5555         * @since 4.4.0
    5656         * @since 6.2.0 Returns a WP_Error object on failure.
    5757         *
    58          * @param string $file           The file name to create attachment object for.
     58         * @param string $file           Full path to the file to create an attachment object for.
     59         *                               The name of the file will be used as the attachment name.
    5960         * @param int    $parent_post_id ID of the post to attach the file to.
    6061         *
Note: See TracChangeset for help on using the changeset viewer.