WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/18/2019 12:17:54 AM (2 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-blog.php

    r46586 r46985  
    2525
    2626    /**
    27      * Creates a blog object.
     27     * Creates a site object.
    2828     *
    2929     * @param array $args Arguments for the site object.
    3030     *
    31      * @return int|WP_Error Returns WP_Error object on failure, the site ID on success.
     31     * @return int|WP_Error The site ID on success, WP_Error object on failure.
    3232     */
    3333    public function create_object( $args ) {
     
    4747
    4848    /**
    49      * Updates a blog object. Not implemented.
     49     * Updates a site object. Not implemented.
    5050     *
    51      * @param int   $blog_id The blog id to update.
     51     * @param int   $blog_id ID of the site to update.
    5252     * @param array $fields  The fields to update.
    5353     *
     
    5757
    5858    /**
    59      * Retrieves a site by given blog id.
     59     * Retrieves a site by a given ID.
    6060     *
    61      * @param int $blog_id The blog id to retrieve.
     61     * @param int $blog_id ID of the site to retrieve.
    6262     *
    63      * @return null|WP_Site The site object or null if not found.
     63     * @return WP_Site|null The site object on success, null on failure.
    6464     */
    6565    public function get_object_by_id( $blog_id ) {
Note: See TracChangeset for help on using the changeset viewer.