Skip to content

Wordpress 6.8 ErrorException #46

@torzborz

Description

@torzborz

The following error exception occurs after updating to Wordpress 6.8 when the WP_DEBUG constant was defined as true:

Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the [theme] 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.)

My fix was to wrap the functions.php content in an init action hook callback, but maybe there is a more elegant solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions