- Timestamp:
- 12/18/2019 12:17:54 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-post.php
r46586 r46985 38 38 * Updates an existing post object. 39 39 * 40 * @param int $post_id The post idto update.40 * @param int $post_id ID of the post to update. 41 41 * @param array $fields Post data. 42 42 * 43 * @return int|WP_Error The value 0 or WP_Error on failure. The post ID on success.43 * @return int|WP_Error The post ID on success. The value 0 or WP_Error on failure. 44 44 */ 45 45 public function update_object( $post_id, $fields ) { … … 49 49 50 50 /** 51 * Retrieves a object by an id.51 * Retrieves a post by a given ID. 52 52 * 53 * @param int $post_id The post id to update.53 * @param int $post_id ID of the post to retrieve. 54 54 * 55 * @return null|WP_Post WP_Post on success ornull on failure.55 * @return WP_Post|null WP_Post object on success, null on failure. 56 56 */ 57 57 public function get_object_by_id( $post_id ) {
Note: See TracChangeset
for help on using the changeset viewer.