--- /dev/null
+## OPTIONS
+
+* <slug>:
+
+ The slug for the new theme, used for prefixing functions.
+
+* `--activate`:
+
+ Activate the newly downloaded theme.
+
+* `--theme_name=<title>`:
+
+ What to put in the 'Theme Name:' header in style.css
+
+* `--author=<full name>`:
+
+ What to put in the 'Author:' header in style.css
+
+* `--author_uri=<http url>`:
+
+ What to put in the 'Author URI:' header in style.css
\ No newline at end of file
$body['underscoresme_generate_submit'] = "Generate";
$body['underscoresme_generate'] = "1";
- // Request Array
- $request = array(
- 'method' => 'POST',
- 'stream' => true,
- 'body' => $body,
- 'sslverify' => false
- );
-
$tmpfname = wp_tempnam($url);
$response = wp_remote_post( $url, array( 'timeout' => $timeout, 'body' => $body, 'stream' => true, 'filename' => $tmpfname ) );
unzip_file( $tmpfname, $theme_path );
- unlink($tmpfname);
+ unlink( $tmpfname );
if ( isset( $assoc_args['activate'] ) )
- WP_CLI::run_command( array( 'theme', 'activate', $theme_slug ) );
+ WP_CLI::run_command( array( 'theme', 'activate', $theme_slug ) );
}