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 1616 },
1717 "require-dev" : {
1818 "wp-cli/extension-command" : " ^1.2 || ^2" ,
19- "wp-cli/wp-cli-tests" : " ^3.1 "
19+ "wp-cli/wp-cli-tests" : " ^4 "
2020 },
2121 "config" : {
2222 "process-timeout" : 7200 ,
Original file line number Diff line number Diff line change 44 return ;
55}
66
7- $ wpcli_scaffold_autoloader = dirname ( __FILE__ ) . '/vendor/autoload.php ' ;
7+ $ wpcli_scaffold_autoloader = __DIR__ . '/vendor/autoload.php ' ;
88if ( file_exists ( $ wpcli_scaffold_autoloader ) ) {
99 require_once $ wpcli_scaffold_autoloader ;
1010}
Original file line number Diff line number Diff line change @@ -1085,7 +1085,6 @@ protected function maybe_create_themes_dir() {
10851085 if ( ! is_dir ( $ themes_dir ) ) {
10861086 wp_mkdir_p ( $ themes_dir );
10871087 }
1088-
10891088 }
10901089
10911090 /**
@@ -1096,7 +1095,6 @@ protected function maybe_create_plugins_dir() {
10961095 if ( ! is_dir ( WP_PLUGIN_DIR ) ) {
10971096 wp_mkdir_p ( WP_PLUGIN_DIR );
10981097 }
1099-
11001098 }
11011099
11021100 /**
@@ -1113,7 +1111,7 @@ protected function init_wp_filesystem() {
11131111 * Localizes the template path.
11141112 */
11151113 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 );
11171115 }
11181116
11191117 /**
You can’t perform that action at this time.
0 commit comments