From 52a369afeb8d9a6931a563ec353587a1c12a7d2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ruz=CC=8Cevic=CC=81?= Date: Wed, 15 May 2024 10:33:59 +0200 Subject: [PATCH] initi --- src/Init/InitPluginSetupCli.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Init/InitPluginSetupCli.php b/src/Init/InitPluginSetupCli.php index faa4ea56e..b8eda197b 100644 --- a/src/Init/InitPluginSetupCli.php +++ b/src/Init/InitPluginSetupCli.php @@ -153,13 +153,14 @@ public function __invoke(array $args, array $assocArgs) $newDestionation = Helpers::joinPaths([\dirname($destionation), $textdomain]); - var_dump($newDestionation); - die; - $this->cliLog('--------------------------------------------------', 'C'); $this->cliLog("Changing the setup plugin to the new plugin with name {$textdomain}", 'C'); \rename($destionation, $newDestionation); // phpcs:ignore WordPress.WP.AlternativeFunctions.rename_rename + $this->cliLog('--------------------------------------------------', 'C'); + $this->cliLog("Changing the setup plugin main PHP file to the new plugin name {$textdomain}.php", 'C'); + \rename(Helpers::joinPaths([$destionation, 'eightshift-boilerplate-plugin.php']), Helpers::joinPaths([$newDestionation, "{$textdomain}.php"])); // phpcs:ignore WordPress.WP.AlternativeFunctions.rename_rename + return; $this->initMandatoryAfter( $assocArgs[self::ARG_LIBS_VERSION],