Skip to content

Fix variable name mismatch in catch clause#53

Merged
schlessera merged 3 commits into
wp-cli:masterfrom
randstring:master
Apr 17, 2019
Merged

Fix variable name mismatch in catch clause#53
schlessera merged 3 commits into
wp-cli:masterfrom
randstring:master

Conversation

@randstring
Copy link
Copy Markdown
Contributor

This was crashing the plugin for some specific WordPress instances. Fixing the exception variable name resolves the problem for me.

@randstring randstring requested a review from a team as a code owner April 17, 2019 10:00
@schlessera schlessera added the bug label Apr 17, 2019
Comment thread src/Find_Command.php Outdated
Comment thread src/Find_Command.php Outdated
@schlessera
Copy link
Copy Markdown
Member

Thanks for the PR, @randstring !

I would however fix this the other way around, with a clear variable name (not a single-letter abbreviation) in both places.

schlessera and others added 2 commits April 17, 2019 13:38
Co-Authored-By: randstring <overripper@gmail.com>
Co-Authored-By: randstring <overripper@gmail.com>
@randstring
Copy link
Copy Markdown
Contributor Author

You are right, a more descriptive name is certainly better.

@schlessera schlessera added this to the 2.0.0 milestone Apr 17, 2019
@schlessera schlessera merged commit 77390d7 into wp-cli:master Apr 17, 2019
@schlessera schlessera changed the title Fix mistaken exception variable name Fix variable name mismatch in catch clause Apr 17, 2019
@schlessera
Copy link
Copy Markdown
Member

Thanks for the PR, @randstring !

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