OSDN Git Service

added default timeout and generic theme description from author and theme name.
authorBrandon Lavigne <B@Brandons-Mac-Pro-4.local>
Wed, 6 Feb 2013 00:45:44 +0000 (16:45 -0800)
committerBrandon Lavigne <B@Brandons-Mac-Pro-4.local>
Wed, 6 Feb 2013 00:45:44 +0000 (16:45 -0800)
php/commands/scaffold.php

index 4597a7c..bb7f473 100644 (file)
@@ -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'];