- Timestamp:
- 12/18/2019 12:17:54 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-blog.php
r46586 r46985 25 25 26 26 /** 27 * Creates a blogobject.27 * Creates a site object. 28 28 * 29 29 * @param array $args Arguments for the site object. 30 30 * 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. 32 32 */ 33 33 public function create_object( $args ) { … … 47 47 48 48 /** 49 * Updates a blogobject. Not implemented.49 * Updates a site object. Not implemented. 50 50 * 51 * @param int $blog_id The blog idto update.51 * @param int $blog_id ID of the site to update. 52 52 * @param array $fields The fields to update. 53 53 * … … 57 57 58 58 /** 59 * Retrieves a site by given blog id.59 * Retrieves a site by a given ID. 60 60 * 61 * @param int $blog_id The blog idto retrieve.61 * @param int $blog_id ID of the site to retrieve. 62 62 * 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. 64 64 */ 65 65 public function get_object_by_id( $blog_id ) {
Note: See TracChangeset
for help on using the changeset viewer.