Skip to content

Commit 924afff

Browse files
authored
Set WP_SQLITE_AST_DRIVER constant when running wp CLI commands without a running server (#2980)
1 parent 9634c2b commit 924afff

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/cli/lib/run-wp-cli-command.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ export async function runWpCliCommand(
6161
try {
6262
await php.setSapiName( 'cli' );
6363

64+
php.defineConstant( 'WP_SQLITE_AST_DRIVER', true );
65+
6466
php.mkdir( '/wordpress' );
6567
await php.mount( '/wordpress', createNodeFsMountHandler( siteFolder ) );
6668

0 commit comments

Comments
 (0)