Skip to content

Ensure code after wp-settings.php call is loaded #6042

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
merged 2 commits into from
Jan 31, 2025
Merged

Conversation

swissspidy
Copy link
Member

Addresses a logical mistake in #6039 that I didn't realize until tests in config-command started failing.

Basically, the wp-settings.php call needs to be omitted, but the code after that still needs to be eval'd.

@swissspidy swissspidy added this to the 2.12.0 milestone Jan 31, 2025
@swissspidy swissspidy requested a review from a team as a code owner January 31, 2025 08:53
@swissspidy
Copy link
Member Author

@mrsdizzie pinging you directly because you helped review the other one & I made a mistake there

Copy link
Member

@mrsdizzie mrsdizzie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see 😅 I've tested this locally against config command as well and that test no longer fails

@swissspidy swissspidy merged commit 8dee816 into main Jan 31, 2025
43 of 47 checks passed
@swissspidy swissspidy deleted the fix/6039-followup branch January 31, 2025 14:39
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.

2 participants