PHP notice calling load_plugin_textdomain()
-
Hello,
I’d like to report the following PHP notice the plugin is generating:PHP Notice: Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>woo-discount-rules</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.ww.wp.xz.cn/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /wp-includes/functions.php on line 6131I think it’s because the plugin is calling
load_plugin_textdomain()with theplugins_loadedhook instead of theinitone (see code).- WordPress v6.9.4
- Discount Rules for WooCommerce v2.6.15
P.S. Same thing with the Pro version of the plugin.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.