Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
swissspidy merged 2 commits into
mainwp-cli/wp-cli:mainfrom
fix/6039-followupwp-cli/wp-cli:fix/6039-followupCopy head branch name to clipboard
Jan 31, 2025
Merged

Ensure code after wp-settings.php call is loaded#6042
swissspidy merged 2 commits into
mainwp-cli/wp-cli:mainfrom
fix/6039-followupwp-cli/wp-cli:fix/6039-followupCopy head branch name to clipboard

Conversation

@swissspidy

Copy link
Copy Markdown
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
Copy Markdown
Member Author

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

@mrsdizzie mrsdizzie left a comment

Copy link
Copy Markdown
Member

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
@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.