wp_register_script causes deprecation notice in PHP 8.1
-
( ! ) Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/wp-includes/class-wp-scripts.php on line 705
This is caused by this line:
wp_register_script(self::WPDISCUZ_FEEDBACK_SHORTCODE . "-shortcode-js", null);
inside
wp-content/plugins/wpdiscuz/class.WpdiscuzCore.php:1186
This is fixed by changing
null
to''
(empty string).I’m using 7.5.4
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wp_register_script causes deprecation notice in PHP 8.1’ is closed to new replies.