-
Notifications
You must be signed in to change notification settings - Fork 57
Bump the wp-playground-php-wasm group with 33 updates #2643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wojtekn
merged 10 commits into
trunk
from
dependabot/npm_and_yarn/wp-playground-php-wasm-6408821ce0
Feb 25, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
549baee
Bump the wp-playground-php-wasm group with 33 updates
dependabot[bot] 7f96ccd
Rename patch for Playground 3.1.2
wojtekn 7ce6e7d
Merge branch 'trunk' into dependabot/npm_and_yarn/wp-playground-php-w…
wojtekn ebc8d52
Merge branch 'trunk' into dependabot/npm_and_yarn/wp-playground-php-w…
wojtekn e0d25a1
Bring error logging conditional fix into 3.1.2 patch
wojtekn d18b5a5
Wait for networkidle before asserting WP Admin elements in e2e test
wojtekn e02165e
Fix auto-login redirect blocked by wp_safe_redirect on CI
wojtekn 8d43195
Revert "Fix auto-login redirect blocked by wp_safe_redirect on CI"
wojtekn 2079a18
Revert "Wait for networkidle before asserting WP Admin elements in e2…
wojtekn 46c75da
Fix auto-login e2e test failing for /wp-admin path without trailing s…
wojtekn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| diff --git a/node_modules/@wp-playground/wordpress/index.cjs b/node_modules/@wp-playground/wordpress/index.cjs | ||
| index 5a74c51..9cf6092 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 ) { | ||
| @@ -750,7 +750,11 @@ class WP_Config_Transformer { | ||
|
|
||
| $log_file = WP_CONTENT_DIR . '/debug.log'; | ||
| define('ERROR_LOG_FILE', $log_file); | ||
| - ini_set('error_log', $log_file); | ||
| + if ( defined( 'WP_DEBUG_LOG' ) && WP_DEBUG_LOG ) { | ||
| + ini_set('error_log', $log_file); | ||
| + } else { | ||
| + ini_set('log_errors', '0'); | ||
| + } | ||
| ?>`),await t.writeFile("/internal/shared/mu-plugins/sitemap-redirect.php",`<?php | ||
| /** | ||
| * Redirect sitemap.xml to wp-sitemap.xml for non-root installations. | ||
| diff --git a/node_modules/@wp-playground/wordpress/index.js b/node_modules/@wp-playground/wordpress/index.js | ||
| index aaaa30d..80ce495 100644 | ||
| --- a/node_modules/@wp-playground/wordpress/index.js | ||
| +++ b/node_modules/@wp-playground/wordpress/index.js | ||
| @@ -475,9 +475,7 @@ class WP_Config_Transformer { | ||
| } | ||
| `; | ||
| async function I(t, e) { | ||
| - const n = s(e, "wp-config.php"), i = { | ||
| - DB_NAME: "wordpress" | ||
| - }; | ||
| + const n = s(e, "wp-config.php"), i = {}; | ||
| if (!t.fileExists(n) && t.fileExists(s(e, "wp-config-sample.php")) && await t.writeFile( | ||
| n, | ||
| await t.readFileAsBuffer( | ||
| @@ -1010,7 +1008,11 @@ async function U(t) { | ||
|
|
||
| $log_file = WP_CONTENT_DIR . '/debug.log'; | ||
| define('ERROR_LOG_FILE', $log_file); | ||
| - ini_set('error_log', $log_file); | ||
| + if ( defined( 'WP_DEBUG_LOG' ) && WP_DEBUG_LOG ) { | ||
| + ini_set('error_log', $log_file); | ||
| + } else { | ||
| + ini_set('log_errors', '0'); | ||
| + } | ||
| ?>` | ||
| ), await t.writeFile( | ||
| "/internal/shared/mu-plugins/sitemap-redirect.php", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,12 @@ | ||
| export function getUrlWithAutoLogin( destinationUrl: string ): string { | ||
| const parsedUrl = new URL( destinationUrl ); | ||
| const baseUrl = `${ parsedUrl.protocol }//${ parsedUrl.hostname }:${ parsedUrl.port }`; | ||
| return `${ baseUrl }/studio-auto-login?redirect_to=${ encodeURIComponent( destinationUrl ) }`; | ||
| // Ensure directory-like paths have a trailing slash to avoid an extra redirect | ||
| // through WordPress's index.php which can produce empty responses. | ||
| let pathname = parsedUrl.pathname; | ||
| if ( ! pathname.endsWith( '/' ) && ! pathname.includes( '.' ) ) { | ||
| pathname += '/'; | ||
| } | ||
| const relativePath = pathname + parsedUrl.search + parsedUrl.hash; | ||
| return `${ baseUrl }/studio-auto-login?redirect_to=${ encodeURIComponent( relativePath ) }`; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes E2E tests, but it seems like the issue that should be fixed on the Playground side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a suggested fix on the Playground side WordPress/wordpress-playground#3301
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I will merge the PR with this change, as it may speed up tests slightly if it avoids a redirect here and there.