Changeset 46985 for trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php
- 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-attachment.php
r46586 r46985 15 15 * @param array $legacy_args Deprecated. 16 16 * 17 * @return 17 * @return int|WP_Error The attachment ID on success. The value 0 or WP_Error on failure. 18 18 */ 19 19 public function create_object( $args, $legacy_parent = 0, $legacy_args = array() ) { … … 41 41 * 42 42 * @param string $file The file name to create attachment object for. 43 * @param int $parent The post idto attach the file to.43 * @param int $parent ID of the post to attach the file to. 44 44 * 45 45 * @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.