From abcaadea26f66ac1ae6580fed141e576ec0ac414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ruz=CC=8Cevic=CC=81?= Date: Wed, 8 May 2024 21:31:00 +0200 Subject: [PATCH] update on few small issues --- src/Init/InitThemeSetupCli.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Init/InitThemeSetupCli.php b/src/Init/InitThemeSetupCli.php index 86d481991..e6d2bcfa6 100644 --- a/src/Init/InitThemeSetupCli.php +++ b/src/Init/InitThemeSetupCli.php @@ -138,8 +138,11 @@ public function __invoke(array $args, array $assocArgs) ->outputWrite($destionation, $file, $assocArgs); } + \rename($destionation, $this->getSetupNewFolderName($destionation, $assocArgs[self::ARG_TEXTDOMAIN])); + $this->initMandatoryAfter(); - \rename($destionation, $this->getSetupNewFolderName($destionation, $assocArgs[self::ARG_TEXTDOMAIN])); + WP_CLI::runcommand('theme activate ' . $assocArgs[self::ARG_TEXTDOMAIN]); + WP_CLI::runcommand('boilerplate init theme'); } }