OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6451d4a
)
added success message if remote request code is 200
author
Brandon Lavigne
<B@Brandons-Mac-Pro-4.local>
Wed, 6 Feb 2013 17:51:21 +0000
(09:51 -0800)
committer
Brandon Lavigne
<B@Brandons-Mac-Pro-4.local>
Wed, 6 Feb 2013 17:51:21 +0000
(09:51 -0800)
php/commands/scaffold.php
patch
|
blob
|
history
diff --git
a/php/commands/scaffold.php
b/php/commands/scaffold.php
index
baf9e8b
..
662fede
100644
(file)
--- a/
php/commands/scaffold.php
+++ b/
php/commands/scaffold.php
@@
-163,6
+163,9
@@
class Scaffold_Command extends WP_CLI_Command {
$tmpfname = wp_tempnam($url);
$response = wp_remote_post( $url, array( 'timeout' => $timeout, 'body' => $body, 'stream' => true, 'filename' => $tmpfname ) );
+ if ( $response['response']['code'] == 200 )
+ WP_CLI::success( "Created theme '".$data['theme_name']."'." );
+
unzip_file( $tmpfname, $theme_path );
unlink( $tmpfname );