Changeset 42343 for trunk/tests/phpunit/tests/xmlrpc/wp/getMediaItem.php
- Timestamp:
- 11/30/2017 11:09:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getMediaItem.php
r40417 r42343 19 19 add_theme_support( 'post-thumbnails' ); 20 20 21 $filename = ( DIR_TESTDATA .'/images/waffles.jpg' );21 $filename = ( DIR_TESTDATA . '/images/waffles.jpg' ); 22 22 $contents = file_get_contents( $filename ); 23 $upload = wp_upload_bits(basename($filename), null, $contents);23 $upload = wp_upload_bits( basename( $filename ), null, $contents ); 24 24 25 $this->attachment_id = $this->_make_attachment( $upload, self::$post_id );25 $this->attachment_id = $this->_make_attachment( $upload, self::$post_id ); 26 26 $this->attachment_data = get_post( $this->attachment_id, ARRAY_A ); 27 27
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)