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

Add missing relative namespace#5616

Merged
schlessera merged 1 commit into
wp-cli:masterwp-cli/wp-cli:masterfrom
ssnepenthe:patch-2Copy head branch name to clipboard
Jul 14, 2022
Merged

Add missing relative namespace#5616
schlessera merged 1 commit into
wp-cli:masterwp-cli/wp-cli:masterfrom
ssnepenthe:patch-2Copy head branch name to clipboard

Conversation

@ssnepenthe

Copy link
Copy Markdown
Contributor

Previously if you were to do the following, you would get an undefined function error instead of the expected exception for wp one not being able to have subcommands:

WP_CLI::add_command('one', function() {});
WP_CLI::add_command('one two', function() {});

@ssnepenthe ssnepenthe requested a review from a team as a code owner February 7, 2022 17:05
@schlessera schlessera merged commit e11c896 into wp-cli:master Jul 14, 2022
@schlessera schlessera changed the title Fix undefined function error Add missing relative namespace Jul 14, 2022
@schlessera schlessera added this to the 2.7.0 milestone Jul 14, 2022
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.

2 participants

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