Skip to content

Stop from flooding debug with _load_textdomain_just_in_time messages #10

@kutmaster

Description

@kutmaster

Hi,
Can you add option to disable logging PHP Notice: Function _load_textdomain_just_in_time was called
the code adding to wp-config.php file doesn't work
set_error_handler(function($errno, $errstr, $errfile, $errline) { // Search if the message contains "_load_textdomain_just_in_time" if (strpos($errstr, '_load_textdomain_just_in_time') !== false) { return true; // suppress the specific error } // for all other messages, just act normal. return false; }, E_USER_NOTICE | E_NOTICE);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions