Skip to content

Change textdomain loading hook to 'init'#47

Open
grakenmol wants to merge 1 commit into
stellarwp:masterfrom
grakenmol:master
Open

Change textdomain loading hook to 'init'#47
grakenmol wants to merge 1 commit into
stellarwp:masterfrom
grakenmol:master

Conversation

@grakenmol
Copy link
Copy Markdown

Updated textdomain loading to hook at 'init' instead of 'plugins_loaded' to avoid warnings in WordPress 6.7.

[27-Apr-2026 11:45:20 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the rcp domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/ACCOUNT/DOMAIN/wp-includes/functions.php on line 6131

Updated textdomain loading to hook at 'init' instead of 'plugins_loaded' to avoid warnings in WordPress 6.7.

[27-Apr-2026 11:45:20 UTC] PHP Notice: Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>rcp</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /home/ACCOUNT/DOMAIN/wp-includes/functions.php on line 6131
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.

1 participant