Changeset 47343 for branches/3.7/tests/phpunit/tests/ajax/MediaEdit.php
- Timestamp:
- 02/22/2020 12:05:12 PM (6 years ago)
- Location:
- branches/3.7
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/ajax/MediaEdit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7
- Property svn:mergeinfo changed
-
branches/3.7/tests/phpunit/tests/ajax/MediaEdit.php
r25002 r47343 33 33 public function tearDown() { 34 34 // Cleanup 35 foreach ( $this->_ids as $id){36 wp_delete_attachment( $id, true);35 foreach ( $this->_ids as $id ) { 36 wp_delete_attachment( $id, true ); 37 37 } 38 38 39 $uploads = wp_upload_dir();40 foreach ( scandir( $uploads['basedir'] ) as $file )41 _rmdir( $uploads['basedir'] . '/' . $file );42 43 39 parent::tearDown(); 44 40 }
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)