Changeset 47122 for trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php
r46985 r47122 68 68 ); 69 69 70 // Save the data 70 // Save the data. 71 71 $id = wp_insert_attachment( $attachment, $upload['file'], $parent ); 72 72 wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $upload['file'] ) );
Note: See TracChangeset
for help on using the changeset viewer.