| @@ -193,11 +193,9 @@ | ||
| 193 | 193 | */ |
| 194 | 194 | private function create_directories( &$dirs_exist ) { |
| 195 | 195 | global $wp_filesystem; |
| 196 | 196 | |
| 197 | - $needed_dirs = $this->get_needed_dirs(); | |
| 198 | - | |
| 199 | - foreach ( $needed_dirs as $_dir ) { | |
| 197 | + foreach ( $this->get_needed_dirs() as $_dir ) { | |
| 200 | 198 | // Only check to see if the Dir exists upon creation failure. Less I/O this way. |
| 201 | 199 | if ( $wp_filesystem->mkdir( $_dir, $this->chmod_dir ) ) { |
| 202 | 200 | $index_path = $_dir . '/index.php'; |
| 203 | 201 | $wp_filesystem->put_contents( $index_path, "<?php\n// Silence is golden.\n?>", $this->chmod_file ); |