Move all i18n calls to init action as per WP 6.7#478
Move all i18n calls to init action as per WP 6.7#478lightningspirit wants to merge 1 commit intoWordPress:trunkfrom
Conversation
|
In WordPress 6.7 update, the non-English site is messed up. The plugin language file and themes do not run correctly. |
|
Note that this will not actually resolve the problem. Using this code I am still getting the warning. However, this PR should resolve the issue #480 |
|
@EvanHerman Could you share the test scenario you ran, I'm not seeing anything wrong with this approach, an a quick local test does resolve the error and still provides translations where I expect them to be. |
|
@EvanHerman this approach should work because it's moving from |
See #477
Short introduction
Ticket #477
Remove warnings related to i18n in WordPress 6.7
Description of what the PR accomplishes
This PR removes the warnings for WordPress 6.7 in regards to calling i18n functions before
inithook.The problem is not only on the
load_plugin_textdomaincall but also in any call to a i18n function beforeinitaction.This commit moves the requires to
init. Manual tests were made using this hook level and no issues were found.