Wrong call to wp_localize_script
-
Hi,
After installing User Tags in a 5.7.2 WordPress I started getting the following Notice message:
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 /var/www/html/wp-includes/functions.php on line 5313
I believe it is related to the wp_localize_script call at line 67 of class-usertags.php
Just putting the third argument inside an array fixes the issue AFAICT
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Wrong call to wp_localize_script’ is closed to new replies.