OSDN Git Service

Added trailing slash to WP_CONTENT_DIR Fixes #446
authorjmslbam <jmslbam@gmail.com>
Sun, 12 May 2013 21:05:21 +0000 (23:05 +0200)
committerjmslbam <jmslbam@gmail.com>
Sun, 12 May 2013 21:05:21 +0000 (23:05 +0200)
php/commands/scaffold.php

index b43e87a..1cdcac3 100644 (file)
@@ -166,7 +166,7 @@ class Scaffold_Command extends WP_CLI_Command {
 
                $data['description'] = ucfirst( $data['parent_theme'] ) . " child theme.";
 
-               $theme_dir = WP_CONTENT_DIR . "themes" . "/$theme_slug";
+               $theme_dir = WP_CONTENT_DIR . "/themes" . "/$theme_slug";
                $theme_style_path = "$theme_dir/style.css";
 
                $this->create_file( $theme_style_path, $this->render( 'child_theme.mustache', $data ) );