#3621 closed defect (bug) (fixed)
plugin activation notice with wp 6.7.1 and woocommerce 9.5.1
| Reported by: | kal123 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 2.6.11 |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by )
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:
Thanks for reporting this and for sharing your findings.
The early bbPress translation request was corrected in r7435 and backported to the 2.6 branch in r7438. The fix shipped in bbPress 2.6.16.
Thanks again for helping us identify this. Closing as fixed.