Changeset 44497 for trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php
- Timestamp:
- 01/09/2019 05:43:14 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php
r43571 r44497 13 13 * } 14 14 * @param int $legacy_parent Deprecated. 15 * @param array $legacy_args Deprecated 15 * @param array $legacy_args Deprecated. 16 * 17 * @return int|WP_Error The attachment ID on success. The value 0 or WP_Error on failure. 16 18 */ 17 19 function create_object( $args, $legacy_parent = 0, $legacy_args = array() ) { … … 35 37 } 36 38 39 /** 40 * Saves an attachment. 41 * 42 * @param string $file The file name to create attachment object for. 43 * @param int $parent The post id to attach the file to. 44 * 45 * @return int|WP_Error The attachment ID on success. The value 0 or WP_Error on failure. 46 */ 37 47 function create_upload_object( $file, $parent = 0 ) { 38 48 $contents = file_get_contents( $file );
Note: See TracChangeset
for help on using the changeset viewer.