Skip to content

Commit 03494ba

Browse files
committed
Only create mu-plugins dir if it doesn't exist
1 parent 75d9b6c commit 03494ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

features/bootstrap/FeatureContext.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,8 +782,11 @@ public function download_wp( $subdir = '' ) {
782782

783783
self::copy_dir( self::$cache_dir, $dest_dir );
784784

785+
if ( ! is_dir( $dest_dir . '/wp-content/mu-plugins' ) ) {
786+
mkdir( $dest_dir . '/wp-content/mu-plugins' );
787+
}
788+
785789
// Disable emailing.
786-
mkdir( $dest_dir . '/wp-content/mu-plugins' );
787790
copy( dirname( __DIR__ ) . '/extra/no-mail.php', $dest_dir . '/wp-content/mu-plugins/no-mail.php' );
788791

789792
// Add polyfills.

0 commit comments

Comments
 (0)