wpDiscuz - WordPress Comment Plugin
FILTER_SANITIZE_STR...
 
Share:
Notifications
Clear all

[Solved] FILTER_SANITIZE_STRING is deprecated

2 Posts
2 Users
0 Likes
299 Views
Omri Amos
Posts: 2
Topic starter
(@omriamos)
New Member
Joined: 2 years ago

Hi,

Getting these warnings on my server log:

PHP Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /path/to/home/wp-content/plugins/wpdiscuz/utils/ajax/wpdiscuz-ajax.php on line 5

FILTER_SANITIZE_STRING is deprecated as of PHP 8.1.0, you should use htmlspecialchars() instead.

 

1 Reply
Asti
Posts: 5091
 Asti
Support
(@asti)
Illustrious Member
Joined: 5 years ago

Hi Omri Amos,

This issue will be fixed in the next version of the wpDiscuz plugin. 

Share: