Skip to content

Conversation

swissspidy
Copy link
Member

@swissspidy swissspidy commented Jan 30, 2025

Slightly improves the existing regex to support require wp-settings.php calls stretched over multiple lines.

Fixes #6038

PHP 5.6 failures are known, see #6018.

The other one is fixed by #6041

@swissspidy swissspidy marked this pull request as ready for review January 30, 2025 21:59
@swissspidy swissspidy requested a review from a team as a code owner January 30, 2025 21:59
@swissspidy swissspidy added this to the 2.12.0 milestone Jan 30, 2025
@swissspidy swissspidy merged commit 66777c1 into main Jan 30, 2025
43 of 47 checks passed
@swissspidy swissspidy deleted the fix/6038-wp-config branch January 30, 2025 22:15
nlemoine added a commit to nlemoine/wpstarter that referenced this pull request May 12, 2025
From 2.12, WP-CLI uses a more accurate regex to check that `wp-settings.php` has been required.

See:
- wp-cli/wp-cli#6039
- wp-cli/wp-cli#6042
nlemoine added a commit to nlemoine/wpstarter that referenced this pull request May 16, 2025
From 2.12, WP-CLI uses a more accurate regex to check that `wp-settings.php` has been required.

See:
- wp-cli/wp-cli#6039
- wp-cli/wp-cli#6042
nlemoine added a commit to nlemoine/wpstarter that referenced this pull request May 16, 2025
From 2.12, WP-CLI uses a more accurate regex to check that `wp-settings.php` has been required.

See:
- wp-cli/wp-cli#6039
- wp-cli/wp-cli#6042
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve wp-settings.php detection in runner
2 participants