From 6451d4af9d9e1b3eb2178135fe85c222f70049ce Mon Sep 17 00:00:00 2001 From: Brandon Lavigne Date: Wed, 6 Feb 2013 09:20:46 -0800 Subject: [PATCH] fixed undefined variables --- php/commands/scaffold.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/php/commands/scaffold.php b/php/commands/scaffold.php index 23067d53..baf9e8be 100644 --- a/php/commands/scaffold.php +++ b/php/commands/scaffold.php @@ -142,7 +142,6 @@ 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( @@ -151,6 +150,8 @@ class Scaffold_Command extends WP_CLI_Command { 'author_uri' => "", ) ); + $theme_description = "Custom theme: ".$data['theme_name']." developed by, ".$data['author']; + $body['underscoresme_name'] = $data['theme_name']; $body['underscoresme_slug'] = $theme_slug; $body['underscoresme_author'] = $data['author']; -- 2.11.0