OSDN Git Service

move /templates/ out of /php/ since it doesn't contain PHP files
authorscribu <mail@scribu.net>
Thu, 7 Feb 2013 01:14:50 +0000 (03:14 +0200)
committerscribu <mail@scribu.net>
Thu, 7 Feb 2013 01:14:56 +0000 (03:14 +0200)
php/commands/scaffold.php
templates/plugin.mustache [moved from php/templates/plugin.mustache with 100% similarity]
templates/post_type.mustache [moved from php/templates/post_type.mustache with 100% similarity]
templates/post_type_extended.mustache [moved from php/templates/post_type_extended.mustache with 100% similarity]
templates/taxonomy.mustache [moved from php/templates/taxonomy.mustache with 100% similarity]
templates/taxonomy_extended.mustache [moved from php/templates/taxonomy_extended.mustache with 100% similarity]

index 0b5c137..08996cd 100644 (file)
@@ -162,7 +162,7 @@ class Scaffold_Command extends WP_CLI_Command {
 
                $tmpfname = wp_tempnam($url);
                $response = wp_remote_post( $url, array( 'timeout' => $timeout, 'body' => $body, 'stream' => true, 'filename' => $tmpfname ) );
-               
+
                if ( $response['response']['code'] == 200 )
                        WP_CLI::success( "Created theme '".$data['theme_name']."'." );
 
@@ -315,7 +315,7 @@ class Scaffold_Command extends WP_CLI_Command {
        }
 
        private function render( $template, $data ) {
-               $scaffolds_dir = WP_CLI_ROOT . 'templates';
+               $scaffolds_dir = WP_CLI_ROOT . '../templates';
 
                $template = file_get_contents( $scaffolds_dir . '/' . $template );