PHP Notice wp_localize_script with WP v5.7
-
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 thewp_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 5313Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
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.