From b62bd52fa7d1706376ed1c8609b0ae43e6d55c14 Mon Sep 17 00:00:00 2001 From: scribu Date: Sat, 20 Apr 2013 00:10:28 +0300 Subject: [PATCH] rename `scaffold child_theme` to `scaffold child-theme` --- php/commands/scaffold.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/php/commands/scaffold.php b/php/commands/scaffold.php index b6372014..4b76b6ce 100644 --- a/php/commands/scaffold.php +++ b/php/commands/scaffold.php @@ -149,6 +149,8 @@ class Scaffold_Command extends WP_CLI_Command { /** * Generate empty child theme (twentytwelve by default). * + * @subcommand child-theme + * * @synopsis [--theme_name=] [--parent_theme=<title>] [--author=<full-name>] [--author_uri=<http-url>] [--theme_uri=<http-url>] [--activate] */ function child_theme( $args, $assoc_args ) { @@ -166,14 +168,14 @@ class Scaffold_Command extends WP_CLI_Command { $data['theme_description'] = ucfirst($data['parent_theme']) . " child theme. "; - + $theme_dir = $theme_path . "/$theme_slug"; $theme_style_path = "$theme_dir/style.css"; $this->create_file( $theme_style_path, $this->render( 'child_theme.mustache', $data ) ); WP_CLI::success( "Created $theme_dir" ); - + if ( isset( $assoc_args['activate'] ) ) WP_CLI::run_command( array( 'theme', 'activate', $theme_slug ) ); -- 2.11.0