File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 16
16
},
17
17
"require-dev" : {
18
18
"wp-cli/extension-command" : " ^1.2 || ^2" ,
19
- "wp-cli/wp-cli-tests" : " ^3.1 "
19
+ "wp-cli/wp-cli-tests" : " ^4 "
20
20
},
21
21
"config" : {
22
22
"process-timeout" : 7200 ,
Original file line number Diff line number Diff line change 4
4
return ;
5
5
}
6
6
7
- $ wpcli_scaffold_autoloader = dirname ( __FILE__ ) . '/vendor/autoload.php ' ;
7
+ $ wpcli_scaffold_autoloader = __DIR__ . '/vendor/autoload.php ' ;
8
8
if ( file_exists ( $ wpcli_scaffold_autoloader ) ) {
9
9
require_once $ wpcli_scaffold_autoloader ;
10
10
}
Original file line number Diff line number Diff line change @@ -1085,7 +1085,6 @@ protected function maybe_create_themes_dir() {
1085
1085
if ( ! is_dir ( $ themes_dir ) ) {
1086
1086
wp_mkdir_p ( $ themes_dir );
1087
1087
}
1088
-
1089
1088
}
1090
1089
1091
1090
/**
@@ -1096,7 +1095,6 @@ protected function maybe_create_plugins_dir() {
1096
1095
if ( ! is_dir ( WP_PLUGIN_DIR ) ) {
1097
1096
wp_mkdir_p ( WP_PLUGIN_DIR );
1098
1097
}
1099
-
1100
1098
}
1101
1099
1102
1100
/**
@@ -1113,7 +1111,7 @@ protected function init_wp_filesystem() {
1113
1111
* Localizes the template path.
1114
1112
*/
1115
1113
private static function mustache_render ( $ template , $ data = [] ) {
1116
- return Utils \mustache_render ( dirname ( dirname ( __FILE__ ) ) . "/templates/ {$ template }" , $ data );
1114
+ return Utils \mustache_render ( dirname ( __DIR__ ) . "/templates/ {$ template }" , $ data );
1117
1115
}
1118
1116
1119
1117
/**
You can’t perform that action at this time.
0 commit comments