• I understand that you haven’t tested this plugin to work with WP v5.7, but it would be helpful if we could get an update that fixes the following notice:

    PHP 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 /wp-includes/functions.php on line 5313

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Deepen

    (@j_3rk)

    @360tactics

    I have tested this with WP v5.7 and seems i have forgotten to update the readme file. Are you sure this error is coming from this plugin ? I have verified this from my side and could not see the error that you have described.

    Thread Starter 360Tactics

    (@360tactics)

    Thanks for the quick reply! When disabling the plugin it goes away. I only notice it pop up in the debug log when I’m navigating the wp back-end.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Notice wp_localize_script with WP v5.7’ is closed to new replies.