Skip to content

Commit 025e8e0

Browse files
Fix $package_root to accommodate new class path
1 parent ec6b476 commit 025e8e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/WP_CLI/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( __FILE__ ) );
88+
$package_root = dirname( dirname( dirname( __FILE__ ) ) );
8989
$template_path = $package_root . '/templates/';
9090

9191
$files_written = $this->create_files( array(
@@ -201,7 +201,7 @@ public function package_readme( $args, $assoc_args ) {
201201

202202
$force = Utils\get_flag_value( $assoc_args, 'force' );
203203

204-
$package_root = dirname( dirname( __FILE__ ) );
204+
$package_root = dirname( dirname( dirname( __FILE__ ) ) );
205205
$template_path = $package_root . '/templates/';
206206

207207
$bits = explode( '/', $composer_obj['name'] );
@@ -474,7 +474,7 @@ public function package_tests( $args, $assoc_args ) {
474474
}
475475

476476
$wp_cli_root = WP_CLI_ROOT;
477-
$package_root = dirname( dirname( __FILE__ ) );
477+
$package_root = dirname( dirname( dirname( __FILE__ ) ) );
478478
$copy_source = array(
479479
$wp_cli_root => array(
480480
'features/bootstrap/FeatureContext.php' => $bootstrap_dir,

0 commit comments

Comments
 (0)