#9240 closed defect (bug) (fixed)
WP 6.7 will introduce a doing it wrong notice about the load_plugin_textdomain() function
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 15.0.0 | Priority: | normal |
Severity: | normal | Version: | 1.0 |
Component: | I18N | Keywords: | has-patch |
Cc: |
Description
Here's the notice:
PHP Notice: Function load_plugin_textdomain was called <strong>incorrectly</strong>. Attempted to load translations for the <code>buddypress</code> domain too early. Translations should be loaded after the <code>after_setup_theme</code> action has fired, to ensure that the current user is already set up. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.)
Change History (6)
This ticket was mentioned in PR #379 on buddypress/buddypress by @imath.
4 months ago
#1
- Keywords has-patch added; needs-patch removed
4 months ago
#2
Looks like WordPress doesn't add warnings anymore! See: https://core.trac.wordpress.org/changeset/59157
This ticket was mentioned in Slack in #buddypress by emaralive. View the logs.
3 months ago
This ticket was mentioned in Slack in #buddypress by dcavins. View the logs.
3 months ago
This ticket was mentioned in Slack in #buddypress by emaralive. View the logs.
3 months ago
Note: See
TracTickets for help on using
tickets.
Wait until
bp_after_setup_theme
before using theload_plugin_textdomain()
function as expected by WordPress 6.7.Trac ticket: https://buddypress.trac.wordpress.org/ticket/9240