Changeset 54300
- Timestamp:
- 09/25/2022 02:37:10 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r54087 r54300 1350 1350 * Does not delete files if their paths are set in the `$ignore_files` property. 1351 1351 * 1352 * @since 4.0.0 1353 * @since 6.1.0 Removes the empty directory if there are no files left. 1354 * 1352 1355 * @param string $path Directory path. 1353 1356 */ … … 1358 1361 $this->unlink( $file ); 1359 1362 } 1363 } 1364 1365 // If there were no ignored files, remove the empty directory. 1366 if ( ! array_intersect( $files, self::$ignore_files ) ) { 1367 rmdir( $path ); 1360 1368 } 1361 1369 }
Note: See TracChangeset
for help on using the changeset viewer.