8000 Throw error for multisite command if not multisite by tfrommen · Pull Request #11 · humanmade/orphan-command · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Throw error for multisite command if not multisite #11

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 1 commit into from
Dec 4, 2024

Conversation

tfrommen
Copy link
Contributor

When merged, this PR fixes #7.

This PR adds a check that is running before invoking a wp orphan blog command to throw an error if the WordPress context is not a multisite installation.
This is in line with core WP CLI commands such as wp network meta.

Copy link
Contributor
@roborourke roborourke left a comment

Choose a reason for hiding this comment

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

Nice and simple, thanks @tfrommen

@roborourke roborourke merged commit 348d061 into humanmade:main Dec 4, 2024
@tfrommen tfrommen deleted the patch-2 branch December 4, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

blog meta command fails on non-multisite installations
2 participants
0