Envira Lite error in WP 5.7 – “WP_Scripts::localize was called incorrectly”
-
Hello,
I’m using Envira Gallery Lite v.1.8.3.4.
I just updated to WP 5.7 and am now seeing a” WP_Scripts::localize was called incorrectly”
error on all front-end pages & posts that contain an Envira gallery.
The error text appears either just above the gallery or, in one case, at the top of the page. The galleries themselves are displaying correctly.
Disabling the Envira plugin removes the error, and also the gallery.
Is this something Envira developers are aware of?
Is it caused by the plugin, or somewhere else?
Would rolling back Envira to an earlier version resolve this?Here is the full front-end error 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 /homepages/44/d153290873/htdocs/wordpress/wp-includes/functions.php on line 5313
Thank you very much.
- The topic ‘Envira Lite error in WP 5.7 – “WP_Scripts::localize was called incorrectly”’ is closed to new replies.