Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions apps/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"license": "GPL-2.0-or-later",
"main": "index.js",
"dependencies": {
"@php-wasm/universal": "3.1.1",
"@php-wasm/universal": "3.1.2",
"@studio/common": "file:../../tools/common",
"@vscode/sudo-prompt": "^9.3.2",
"@wp-playground/blueprints": "3.1.1",
"@wp-playground/cli": "3.1.1",
"@wp-playground/common": "3.1.1",
"@wp-playground/storage": "3.1.1",
"@wp-playground/blueprints": "3.1.2",
"@wp-playground/cli": "3.1.2",
"@wp-playground/common": "3.1.2",
"@wp-playground/storage": "3.1.2",
"cli-table3": "^0.6.5",
"http-proxy": "^1.18.1",
"node-forge": "^1.3.3",
Expand Down
25 changes: 0 additions & 25 deletions apps/cli/patches/@wp-playground+wordpress+3.1.1.patch

This file was deleted.

25 changes: 25 additions & 0 deletions apps/cli/patches/@wp-playground+wordpress+3.1.2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
diff --git a/node_modules/@wp-playground/wordpress/index.cjs b/node_modules/@wp-playground/wordpress/index.cjs
index 5a74c51..fb513b5 100644
--- a/node_modules/@wp-playground/wordpress/index.cjs
+++ b/node_modules/@wp-playground/wordpress/index.cjs
@@ -469,7 +469,7 @@ class WP_Config_Transformer {
&& ( T_WHITESPACE === $token[0] || T_COMMENT === $token[0] || T_DOC_COMMENT === $token[0] );
}
}
-`;async function g(t,e){const n=r.joinPaths(e,"wp-config.php"),i={DB_NAME:"wordpress"};if(!t.fileExists(n)&&t.fileExists(r.joinPaths(e,"wp-config-sample.php"))&&await t.writeFile(n,await t.readFileAsBuffer(r.joinPaths(e,"wp-config-sample.php"))),!t.fileExists(n))return;const a=r.phpVars({wpConfigPath:n,constants:i});if((await t.run({code:`${$}
+`;async function g(t,e){const n=r.joinPaths(e,"wp-config.php"),i={};if(!t.fileExists(n)&&t.fileExists(r.joinPaths(e,"wp-config-sample.php"))&&await t.writeFile(n,await t.readFileAsBuffer(r.joinPaths(e,"wp-config-sample.php"))),!t.fileExists(n))return;const a=r.phpVars({wpConfigPath:n,constants:i});if((await t.run({code:`${$}
$wp_config_path = ${a.wpConfigPath};
$transformer = WP_Config_Transformer::from_file($wp_config_path);
foreach ( ${a.constants} as $name => $value ) {
diff --git a/node_modules/@wp-playground/wordpress/index.js b/node_modules/@wp-playground/wordpress/index.js
index aaaa30d..e183407 100644
--- a/node_modules/@wp-playground/wordpress/index.js
+++ b/node_modules/@wp-playground/wordpress/index.js
@@ -476,7 +476,6 @@ class WP_Config_Transformer {
`;
async function I(t, e) {
const n = s(e, "wp-config.php"), i = {
- DB_NAME: "wordpress"
};
if (!t.fileExists(n) && t.fileExists(s(e, "wp-config-sample.php")) && await t.writeFile(
n,
2 changes: 1 addition & 1 deletion apps/studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"@types/winreg": "^1.2.36",
"@types/yauzl": "^2.10.3",
"@vitejs/plugin-react": "^5.1.4",
"@wp-playground/blueprints": "3.1.1",
"@wp-playground/blueprints": "3.1.2",
"electron": "^40.6.0",
"electron-devtools-installer": "^4.0.0",
"electron-vite": "^5.0.0",
Expand Down
Loading