Skip to:
Content

BuddyPress.org

Opened 22 months ago

Closed 22 months ago

Last modified 20 months ago

#9240 closed defect (bug) (fixed)

WP 6.7 will introduce a doing it wrong notice about the load_plugin_textdomain() function

Reported by: imath Owned by:
Priority: normal Milestone: 15.0.0
Component: I18N Version: 1.0
Severity: normal 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.


22 months ago
#1

  • Keywords has-patch added; needs-patch removed

Wait until bp_after_setup_theme before using the load_plugin_textdomain() function as expected by WordPress 6.7.

Trac ticket: https://buddypress.trac.wordpress.org/ticket/9240

@imath commented on PR #379:


22 months ago
#2

Looks like WordPress doesn't add warnings anymore! See: https://core.trac.wordpress.org/changeset/59157

#3 @imath
22 months ago

  • Resolutionfixed
  • Status newclosed

This ticket was mentioned in Slack in #buddypress by emaralive. View the logs.


20 months ago

This ticket was mentioned in Slack in #buddypress by dcavins. View the logs.


20 months ago

This ticket was mentioned in Slack in #buddypress by emaralive. View the logs.


20 months ago

Note: See TracTickets for help on using tickets.