Title: WP_Scripts::localize WordPress 5.7 issue &#8211; wp_add_inline_script
Last modified: July 28, 2022

---

# WP_Scripts::localize WordPress 5.7 issue – wp_add_inline_script

 *  Resolved [neuronpartners](https://wordpress.org/support/users/neuronpartners/)
 * (@neuronpartners)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/wp_scriptslocalize-wordpress-5-7-issue-wp_add_inline_script/)
 * Hello,
 * I have an issue with your plugin, WP show this when it’s activated :
 * Notice: La fonction WP_Scripts::localize a été appelée de façon incorrecte. Le
   paramètre $l10n doit être un tableau. Pour transmettre des données arbitraires
   aux scripts, utilisez plutôt la fonction wp_add_inline_script(). Veuillez lire
   Débogage dans WordPress (en) pour plus d’informations. (Ce message a été ajouté
   à la version 5.7.0.) in /home5/mywebsite.com/wp-includes/functions.php on line
   5831

Viewing 1 replies (of 1 total)

 *  [Support Ole](https://wordpress.org/support/users/trsupsys/)
 * (@trsupsys)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/wp_scriptslocalize-wordpress-5-7-issue-wp_add_inline_script/#post-15883608)
 * Hi, [@neuronpartners](https://wordpress.org/support/users/neuronpartners/)
    Thank
   you for contacting us! We tried to reproduce your problems on our testing servers
   and didn’t have any luck. So most likely there is a conflict with your other 
   plugin or your theme. We hope you understand that we can’t test our products 
   with all other plugins and themes that are available on the market, and we can’t
   control the other developers. Therefore bad code of other plugins or templates
   can provoke a lot of problems. Please try to deactivate all your plugins one 
   by one and check the issue. Thus you will find out which plugin causes the error.
   If it won’t help, try to switch temporarily to a standard WordPress theme. Afterwards
   let us know about the result. This will help our developers to solve your problem
   faster.
 * Regards,
    Ole

Viewing 1 replies (of 1 total)

The topic ‘WP_Scripts::localize WordPress 5.7 issue – wp_add_inline_script’ is closed
to new replies.

 * ![](https://ps.w.org/data-tables-generator-by-supsystic/assets/icon-256x256.png?
   rev=1158691)
 * [Data Tables Generator by Supsystic](https://wordpress.org/plugins/data-tables-generator-by-supsystic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/data-tables-generator-by-supsystic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/data-tables-generator-by-supsystic/)
 * [Active Topics](https://wordpress.org/support/plugin/data-tables-generator-by-supsystic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/data-tables-generator-by-supsystic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/data-tables-generator-by-supsystic/reviews/)

## Tags

 * [data table](https://wordpress.org/support/topic-tag/data-table/)

 * 1 reply
 * 2 participants
 * Last reply from: [Support Ole](https://wordpress.org/support/users/trsupsys/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/wp_scriptslocalize-wordpress-5-7-issue-wp_add_inline_script/#post-15883608)
 * Status: resolved