Changeset 44785 for trunk/tests/phpunit/tests/image/intermediateSize.php
- Timestamp:
- 03/01/2019 08:57:26 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/intermediateSize.php
r42343 r44785 18 18 public function _make_attachment( $file, $parent_post_id = 0 ) { 19 19 $contents = file_get_contents( $file ); 20 $upload = wp_upload_bits( basename( $file ), null, $contents );20 $upload = wp_upload_bits( wp_basename( $file ), null, $contents ); 21 21 22 22 return parent::_make_attachment( $upload, $parent_post_id );
Note: See TracChangeset
for help on using the changeset viewer.