Skip to content

Commit 7ad99ce

Browse files
Revert "Fix $package_root to accommodate new class path"
This reverts commit 025e8e0.
1 parent 07d7788 commit 7ad99ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ScaffoldPackageCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function package( $args, $assoc_args ) {
8585

8686
$force = Utils\get_flag_value( $assoc_args, 'force' );
8787

88-
$package_root = dirname( dirname( dirname( __FILE__ ) ) );
88+
$package_root = dirname( dirname( __FILE__ ) );
8989
$template_path = $package_root . '/templates/';
9090
$wp_cli_yml = <<<EOT
9191
require:
@@ -205,7 +205,7 @@ public function package_readme( $args, $assoc_args ) {
205205

206206
$force = Utils\get_flag_value( $assoc_args, 'force' );
207207

208-
$package_root = dirname( dirname( dirname( __FILE__ ) ) );
208+
$package_root = dirname( dirname( __FILE__ ) );
209209
$template_path = $package_root . '/templates/';
210210

211211
$bits = explode( '/', $composer_obj['name'] );
@@ -478,7 +478,7 @@ public function package_tests( $args, $assoc_args ) {
478478
}
479479

480480
$wp_cli_root = WP_CLI_ROOT;
481-
$package_root = dirname( dirname( dirname( __FILE__ ) ) );
481+
$package_root = dirname( dirname( __FILE__ ) );
482482
$copy_source = array(
483483
$wp_cli_root => array(
484484
'features/bootstrap/FeatureContext.php' => $bootstrap_dir,

0 commit comments

Comments
 (0)