Skip to content

Conversation

@kmgalanakis
Copy link
Contributor

Description of the Change

The problem here is that the plugin was attempting to localize some strings very early, the moment the class instance was generated. Since this was too early, the call of the method was moved to a callback of the init action.

Closes #339

How to test the Change

The notice was thrown on any request, provided that the plugin was active. Browsing the site and not seeing the warning in the logs, while the plugin's setting remain usable, should be the best way to test that the issue is resolved.

Changelog Entry

Fixed - PHP Notice that the function "_load_textdomain_just_in_time" was called incorrectly.

Credits

Props @kmgalanakis

Checklist:

@dkotter dkotter merged commit 04410cc into develop Apr 3, 2025
14 checks passed
@dkotter dkotter deleted the fix/load-textdomain-issue branch April 3, 2025 13:53
@dkotter dkotter modified the milestones: 7.6.0, 7.5.3 May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:code-review This requires code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Function _load_textdomain_just_in_time was called incorrectly - error with multisite setup

2 participants