Title: PHP Deprecated: Constant FILTER_SANITIZE_STRING
Last modified: September 13, 2022

---

# PHP Deprecated: Constant FILTER_SANITIZE_STRING

 *  Resolved [maks131313](https://wordpress.org/support/users/maks131313/)
 * (@maks131313)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-deprecated-constant-filter_sanitize_string/)
 * Hello! WordPress has long supported PHP 8.1 [https://make.wordpress.org/hosting/handbook/server-environment/#php](https://make.wordpress.org/hosting/handbook/server-environment/#php)
   I also translated all my sites to PHP 8.1, but the WP-External-Links plugin into
   Debug_log:
 *     ```
       [13-Sep-2022 03:39:43 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /var/www/1111/data/www/111/wp-content/plugins/wp-external-links/includes/admin/class-wpel-network-page.php on line 52
       [13-Sep-2022 03:39:43 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /var/www/111/data/www/111/wp-content/plugins/wp-external-links/includes/admin/class-wpel-settings-page.php on line 93
       [13-Sep-2022 03:40:53 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /var/www/111/data/www/1111/wp-content/plugins/wp-external-links/includes/admin/class-wpel-network-page.php on line 52
       [13-Sep-2022 03:40:53 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /var/www/111/data/www/1111/wp-content/plugins/wp-external-links/includes/admin/class-wpel-settings-page.php on line 93
       ```
   
 * Can you fix these warnings? It is inconvenient to work with Debug_log as it is
   filled with Tolo with these warnings. Thank you!
    -  This topic was modified 3 years, 8 months ago by [maks131313](https://wordpress.org/support/users/maks131313/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Alexandru Tapuleasa](https://wordpress.org/support/users/talextech/)
 * (@talextech)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-deprecated-constant-filter_sanitize_string/#post-16004175)
 * Hi,
 * We will fix them in the next update.
    Please note that WordPress support for 
   PHP 8 is still in beta though ( [https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/](https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/))
 *  [midikris](https://wordpress.org/support/users/midikris/)
 * (@midikris)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-deprecated-constant-filter_sanitize_string/#post-16120397)
 * [@talextech](https://wordpress.org/support/users/talextech/) Hi Alexandru PHP
   8.0/8.1 is going live very shortly, in fact we’re on VIP Go and VIP is mandating
   PHP 8.1 WP 6.0 live the middle of November 2022.
    -  This reply was modified 3 years, 7 months ago by [midikris](https://wordpress.org/support/users/midikris/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Deprecated: Constant FILTER_SANITIZE_STRING’ is closed to new replies.

 * ![](https://ps.w.org/wp-external-links/assets/icon-256x256.png?rev=2103983)
 * [External Links - nofollow, noopener & new window](https://wordpress.org/plugins/wp-external-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-external-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-external-links/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-external-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-external-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-external-links/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [midikris](https://wordpress.org/support/users/midikris/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/php-deprecated-constant-filter_sanitize_string/#post-16120397)
 * Status: resolved