Skip to content

Commit 4e15294

Browse files
committed
create wp-content dir
1 parent 6ce464c commit 4e15294

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

jekyll-export.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,11 @@ function export() {
227227
WP_Filesystem();
228228

229229
$temp_dir = get_temp_dir();
230-
$this->dir = $temp_dir . '/wp-jekyll-' . md5( time() ) . '/';
231-
$this->zip = $temp_dir . '/wp-jekyll.zip';
230+
$this->dir = $temp_dir . 'wp-jekyll-' . md5( time() ) . '/';
231+
$this->zip = $temp_dir . 'wp-jekyll.zip';
232232
$wp_filesystem->mkdir( $this->dir );
233233
$wp_filesystem->mkdir( $this->dir . '_posts/' );
234+
$wp_filesystem->mkdir( $this->dir . 'wp-content/' );
234235

235236
$this->convert_options();
236237
$this->convert_posts();
@@ -423,7 +424,7 @@ function copy_recursive($source, $dest) {
423424

424425
// Make destination directory
425426
if ( !is_dir($dest) ) {
426-
$wp_filesystem->mkdir($dest, null, true );
427+
$wp_filesystem->mkdir( $dest );
427428
}
428429

429430
// Loop through the folder

0 commit comments

Comments
 (0)