mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-22 22:34:30 +00:00
Wouldn't it be incredible if you could run Unit Tests without all of your uploads being indiscriminately blown away and your upload folder permissions being destroyed?
The Future Is Now. Fixes #28847. git-svn-id: https://develop.svn.wordpress.org/trunk@29120 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -313,18 +313,6 @@ if ( !function_exists( 'str_getcsv' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
function _rmdir( $path ) {
|
||||
if ( in_array(basename( $path ), array( '.', '..' ) ) ) {
|
||||
return;
|
||||
} elseif ( is_file( $path ) ) {
|
||||
unlink( $path );
|
||||
} elseif ( is_dir( $path ) ) {
|
||||
foreach ( scandir( $path ) as $file )
|
||||
_rmdir( $path . '/' . $file );
|
||||
rmdir( $path );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes the post type and its taxonomy associations.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user