Changeset 29120 for trunk/tests/phpunit/includes/utils.php
- Timestamp:
- 07/12/2014 07:08:15 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/utils.php
r28797 r29120 314 314 } 315 315 316 function _rmdir( $path ) {317 if ( in_array(basename( $path ), array( '.', '..' ) ) ) {318 return;319 } elseif ( is_file( $path ) ) {320 unlink( $path );321 } elseif ( is_dir( $path ) ) {322 foreach ( scandir( $path ) as $file )323 _rmdir( $path . '/' . $file );324 rmdir( $path );325 }326 }327 328 316 /** 329 317 * Removes the post type and its taxonomy associations.
Note: See TracChangeset
for help on using the changeset viewer.