From: scribu Date: Fri, 19 Apr 2013 21:10:28 +0000 (+0300) Subject: rename `scaffold child_theme` to `scaffold child-theme` X-Git-Tag: v0.10.0~109^2~2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b62bd52fa7d1706376ed1c8609b0ae43e6d55c14;p=wvm%2Fwvm.git rename `scaffold child_theme` to `scaffold child-theme` --- 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 ) );