• Hello
    With WP 6.7.1 and debug mode enabled, a notification appears on the page where the form is inserted:

    Notice: The WP_Scripts::localize function was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please read Debugging WordPress for more information. (This message was added in version 5.7.0.) in /wp-includes/functions.php on line 6114

    wp_localize_script() is used in /wp-content/plugins/international-telephone-input-for-contact-form-7/includes/form-tag.php on line 105.

    If someone could suggest a fix!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘WP_Scripts::localize function was called incorrectly’ is closed to new replies.