Skip to content
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

update-po: Check for destination #356

Merged

Conversation

elenachavdarova
Copy link

@elenachavdarova elenachavdarova commented Mar 17, 2023

Included a check if the destination is not either a file or a directory. In that case return an WP_CLI error instead of Fatal Error. Functional tests added as well.

Fixes #332

@elenachavdarova elenachavdarova requested a review from a team as a code owner March 17, 2023 13:38
@elenachavdarova elenachavdarova force-pushed the 332_Fatal_error_on_missing_po_files branch from 35a04db to f9fc458 Compare March 17, 2023 14:12
@elenachavdarova elenachavdarova changed the title 332 Check for destination #332 Check for destination Mar 17, 2023
@swissspidy swissspidy changed the title #332 Check for destination update-po: Check for destination Mar 17, 2023
src/UpdatePoCommand.php Outdated Show resolved Hide resolved
@elenachavdarova elenachavdarova force-pushed the 332_Fatal_error_on_missing_po_files branch from f9fc458 to 7107fb9 Compare March 18, 2023 09:45
@elenachavdarova elenachavdarova force-pushed the 332_Fatal_error_on_missing_po_files branch from 7107fb9 to d941666 Compare March 18, 2023 09:46
Copy link
Member

@swissspidy swissspidy left a comment

Choose a reason for hiding this comment

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

Woohoo! Thanks a lot for fixing this bug and also including tests.

@swissspidy swissspidy merged commit bee2f0f into wp-cli:main Mar 18, 2023
@swissspidy swissspidy added this to the 2.4.3 milestone Mar 18, 2023
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.

update-po: Empty glob result results in PHP fatal error
3 participants