Since WP 5.7: debug.log gets flooded with $l10n
-
When i use your plugin i get this error in debug.log:
[11-Mar-2021 15:13:06 UTC] PHP Notice: WP_Scripts::localize was called <strong>incorrectly</strong>. The <code>$l10n</code> parameter must be an array. To pass arbitrary data to scripts, use the <code>wp_add_inline_script()</code> function instead. Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.7.0.) in /home/customer/www/…/public_html/wp-includes/functions.php on line 5313
- The topic ‘Since WP 5.7: debug.log gets flooded with $l10n’ is closed to new replies.