• infodozz

    (@infodozz)


    Hi all, I am getting this notification – WP_Scripts::localize was called incorrectly on the backend of my website but the frontend seems to be fine. How can I fix this issue?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @infodozz,

    what is the full error message you’re getting? WP_Scripts::localize is probably called incorrectly by one of the plugins you’ve activated and you might need to identify that plugin by deactivating plugin one by one.

    Thread Starter infodozz

    (@infodozz)

    Notice: WP_Scripts::localize 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 see Debugging in WordPress for more information. (This message was added in version 5.7.0.) in /home1/infodozz/public_html/wp-includes/functions.php on line 5313

    The above is the entire notice. How can I fix it? Thank you so much

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP_Scripts::localize was called incorrectly’ is closed to new replies.