- Timestamp:
- 01/09/2019 05:43:14 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-blog.php
r42343 r44497 24 24 } 25 25 26 /** 27 * Creates a blog object. 28 * 29 * @param array $args Arguments for the site object. 30 * 31 * @return int|WP_Error Returns WP_Error object on failure, the site ID on success. 32 */ 26 33 function create_object( $args ) { 27 34 global $wpdb; … … 39 46 } 40 47 48 /** 49 * Updates a blog object. Not implemented. 50 * 51 * @param int $blog_id The blog id to update. 52 * @param array $fields The fields to update. 53 * 54 * @return void 55 */ 41 56 function update_object( $blog_id, $fields ) {} 42 57 58 /** 59 * Retrieves a site by given blog id. 60 * 61 * @param int $blog_id The blog id to retrieve. 62 * 63 * @return null|WP_Site The site object or null if not found. 64 */ 43 65 function get_object_by_id( $blog_id ) { 44 66 return get_site( $blog_id );
Note: See TracChangeset
for help on using the changeset viewer.