wp_localize_script used incorrectly
-
Our logs are filled with PHP notices that have been tracked down to incorrect usage of
wp_localize_script– specifically in one or more of the localization calls fromhandl_utm_grabber_enqueuein handl-utm-grabber-v3.php. Can you please track down the issue and provide a fix?
PHP Notice: Function WP_Scripts::localize was called incorrectly. The$l10nparameter must be an array. To pass arbitrary data to scripts, use thewp_add_inline_script()function instead.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘wp_localize_script used incorrectly’ is closed to new replies.