Make WordPress Core


Ignore:
Timestamp:
12/18/2019 12:17:54 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Various documentation fixes for unit test factories.

See #48303.

File:
1 edited

Legend:

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

    r46586 r46985  
    1515     * @param array $legacy_args   Deprecated.
    1616     *
    17      * @return  int|WP_Error The attachment ID on success. The value 0 or WP_Error on failure.
     17     * @return int|WP_Error The attachment ID on success. The value 0 or WP_Error on failure.
    1818     */
    1919    public function create_object( $args, $legacy_parent = 0, $legacy_args = array() ) {
     
    4141     *
    4242     * @param string $file   The file name to create attachment object for.
    43      * @param int    $parent The post id to attach the file to.
     43     * @param int    $parent ID of the post to attach the file to.
    4444     *
    4545     * @return int|WP_Error The attachment ID on success. The value 0 or WP_Error on failure.
Note: See TracChangeset for help on using the changeset viewer.