Skip to content

Commit ebc53e8

Browse files
author
David Ryan
committed
organization
1 parent 667555b commit ebc53e8

File tree

15 files changed

+3
-1
lines changed

15 files changed

+3
-1
lines changed

app/admin/class-generators-page.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ function __construct( $installed_dir, $installed_url, $version ) {
5151
*/
5252
function process_download() {
5353
$data = $this->gather_submitted_data();
54+
error_log( var_export( $data, true ) );
55+
$plugin = isset( $data['plugin_arch_type'] ) ? $data['plugin_arch_type'] : 'simple';
5456
$data['generator_version'] = $this->version;
5557
new Product_Machine(
5658
sanitize_title_with_dashes( $data['plugin_name'] ),
57-
$this->installed_dir . '/admin/templates/plugin',
59+
$this->installed_dir . '/boilerplates/' . $plugin,
5860
$this->installed_dir . '/tmp',
5961
$data,
6062
$this->create_config()

app/admin/templates/plugin/.circleci/codesniffer.ruleset.xml renamed to app/boilerplates/simple/.circleci/codesniffer.ruleset.xml

File renamed without changes.
File renamed without changes.
File renamed without changes.

app/admin/templates/plugin/.github/PULL_REQUEST_TEMPLATE.md renamed to app/boilerplates/simple/.github/PULL_REQUEST_TEMPLATE.md

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)