Support multiple files in `WP_CLI_EARLY_REQUIRE` by swissspidy · Pull Request #6065 · wp-cli/wp-cli

Expand Up @@ -26,7 +26,10 @@ require_once WP_CLI_ROOT . '/php/bootstrap.php';
if ( getenv( 'WP_CLI_EARLY_REQUIRE' ) ) { require_once getenv( 'WP_CLI_EARLY_REQUIRE' ); foreach ( explode( ',', getenv( 'WP_CLI_EARLY_REQUIRE' ) ) as $wp_cli_early_require ) { require_once trim( $wp_cli_early_require );

Check warning on line 30 in php/wp-cli.php

View check run for this annotation

Codecov / codecov/patch

php/wp-cli.php#L29-L30

Added lines #L29 - L30 were not covered by tests

} unset( $wp_cli_early_require );

Check warning on line 32 in php/wp-cli.php

View check run for this annotation

Codecov / codecov/patch

php/wp-cli.php#L32

Added line #L32 was not covered by tests

}
WP_CLI\bootstrap();