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

Remove default available translation for plugins and themes #154

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

dottxado
Copy link

@dottxado dottxado commented Jun 13, 2024

en_US translations may not be always installed in the case of plugins and themes, so I removed the line of code that assumes the availability of the language for anything different than the core. Now the available translations are the only ones got from wp_get_installed_translations.

I needed to remove some tests because removing the assumption on the language is no more generating a good test case, and this make me think that this solution is not the best one. More in the issue discussion #84

This should fix #84

Related wp-cli/wp-cli#5955

@dottxado dottxado requested a review from a team as a code owner June 13, 2024 08:51
@dottxado dottxado marked this pull request as draft June 13, 2024 09:17
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.

Not possible to install translations for en_US
1 participant