Skip to content

Add new task provider: Select site locale #540

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

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
Open

Conversation

aristath
Copy link
Member

@aristath aristath commented Jul 3, 2025

Checks if the browser language is not the same as the site locale, and adds a new task in case they differ.

Fixes https://github.com/ProgressPlanner/progress-planner-pro/issues/135

Copy link
Contributor

github-actions bot commented Jul 3, 2025

Test on Playground
Test this pull request on the Playground or download the zip.

@aristath aristath marked this pull request as ready for review July 3, 2025 07:06
@aristath aristath added this to the 1.7.0 milestone Jul 3, 2025

$response = \wp_remote_get( 'https://api.wordpress.org/translations/core/1.0/' );
if ( \is_wp_error( $response ) ) {
return [];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, feel free to push it! 👍

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