Opened 7 weeks ago
Last modified 7 weeks ago
#3621 new defect (bug)
plugin activation notice with wp 6.7.1 and woocommerce 9.5.1
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 2.6.11 |
Component: | General | Keywords: | |
Cc: |
Description
When activating bbpress, I see:
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the bbpress 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 /var/www/sleeplateandhike/public_html/wp-includes/functions.php on line 6114
I modified bbpress to move the text domain to an add action that happens later:
includes/core/actions.php
add_action( ‘after_setup_theme’, ‘bbp_load_textdomain’, 4);
And, removed it from bbpress.php core actions to prevent the same issue.
I am not sure these are the most ideal solutions, as I am not the author of these plugins.
Recommended solution:
More likely to happen when running Woocommerce 9.4 with WP 6.7:
The official Woocommerce notice about this change: