Skip to content

Improve regex for detecting wp-settings.php#6039

Merged
swissspidy merged 1 commit intomainfrom
fix/6038-wp-config
Jan 30, 2025
Merged

Improve regex for detecting wp-settings.php#6039
swissspidy merged 1 commit intomainfrom
fix/6038-wp-config

Conversation

@swissspidy
Copy link
Copy Markdown
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
@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

2 participants