Skip to content

FILTER_SANITIZE_STRING deprecation notice with PHP 8.1 #721

@vmanthos

Description

@vmanthos

Before submitting an issue please check that you’ve completed the following steps:

  • Made sure you’re on the latest version ✔️
  • Used the search feature to ensure that the bug hasn’t been reported before ✔️

Describe the bug

PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /var/www/example.com/htdocs/wp-content/plugins/imagify/inc/classes/class-imagify-views.php on line 511

To Reproduce

Steps to reproduce the behavior:

  1. Use PHP 8.1.
  2. Activate Imagify.
  3. Visit the media library page: /wp-admin/upload.php
  4. See the notice in the debug.log.

Expected behavior

No deprecation notices should be there when using Imagify with PHP 8.1.

Additional context

FILTER_SANITIZE_STRING is used in other places in Imagify's code. Those should be tackled as well.

Backlog Grooming (for WP Media dev team use only)

  • Reproduce the problem
  • Identify the root cause
  • Scope a solution
  • Estimate the effort

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions