PHP 8 – wp_localize_script throws ErrorException
-
Hi,
running SVG Support (2.3.18) in PHP 8 (WordPress 5.6.1) will throw an ErrorException
ErrorException: Only the first byte will be assigned to the string offset in file
because of using a string as third parameter in
wp_localize_script()
(…/plugins/svg-support/functions/enqueue.php:145) instead of an array.See https://github.com/dsturm/svg-support/tree/php-8 for a possible fix.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP 8 – wp_localize_script throws ErrorException’ is closed to new replies.