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:
59d4752
)
added default timeout and generic theme description from author and theme name.
author
Brandon Lavigne
<B@Brandons-Mac-Pro-4.local>
Wed, 6 Feb 2013 00:45:44 +0000
(16:45 -0800)
committer
Brandon Lavigne
<B@Brandons-Mac-Pro-4.local>
Wed, 6 Feb 2013 00:45:44 +0000
(16:45 -0800)
php/commands/scaffold.php
patch
|
blob
|
history
diff --git
a/php/commands/scaffold.php
b/php/commands/scaffold.php
index
4597a7c
..
bb7f473
100644
(file)
--- a/
php/commands/scaffold.php
+++ b/
php/commands/scaffold.php
@@
-142,13
+142,15
@@
class Scaffold_Command extends WP_CLI_Command {
$theme_slug = $args[0];
$theme_path = WP_CONTENT_DIR . "/themes";
$url = "http://underscores.me";
+ $theme_description = "Custom theme: ".$data['theme_name']." developed by, ".$data['author'];
+ $timeout = 30;
$data = wp_parse_args( $assoc_args, array(
'theme_name' => ucfirst( $theme_slug ),
'author' => "Me",
'author_uri' => "",
) );
-
+
$body['underscoresme_name'] = $data['theme_name'];
$body['underscoresme_slug'] = $theme_slug;
$body['underscoresme_author'] = $data['author'];