Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with deprecation alerts #199

Open
LonsterMonster opened this issue Jul 22, 2023 · 1 comment · May be fixed by #203
Open

Problem with deprecation alerts #199

LonsterMonster opened this issue Jul 22, 2023 · 1 comment · May be fixed by #203

Comments

@LonsterMonster
Copy link

LonsterMonster commented Jul 22, 2023

I enabled the log in the wp config as it helps me make sure everything is correct when installing stuff to my install of wp and installed the plugin to see how it was and got these deprecation errors

Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/u464391981/domains/contribucraft.com/public_html/wp-content/plugins/wp-multi-network/wp-multi-network/includes/classes/class-wp-ms-networks-admin.php on line 245

Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/u464391981/domains/contribucraft.com/public_html/wp-content/plugins/wp-multi-network/wp-multi-network/includes/classes/class-wp-ms-networks-list-table.php on line 55

Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/u464391981/domains/contribucraft.com/public_html/wp-content/plugins/wp-multi-network/wp-multi-network/includes/classes/class-wp-ms-networks-list-table.php on line 57

Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/u464391981/domains/contribucraft.com/public_html/wp-content/plugins/wp-multi-network/wp-multi-network/includes/classes/class-wp-ms-networks-list-table.php on line 59

Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/u464391981/domains/contribucraft.com/public_html/wp-content/plugins/wp-multi-network/wp-multi-network/includes/classes/class-wp-ms-networks-list-table.php on line 61

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/u464391981/domains/contribucraft.com/public_html/wp-content/plugins/wp-multi-network/wp-multi-network/includes/classes/class-wp-ms-networks-list-table.php on line 64

Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/u464391981/domains/contribucraft.com/public_html/wp-content/plugins/wp-multi-network/wp-multi-network/includes/classes/class-wp-ms-networks-admin.php on line 437
@SteelWagstaff
Copy link
Contributor

FILTER_SANITIZE_STRING was deprecated as of PHP 8.1. The documentation recommends using htmlspecialchars() instead: https://www.php.net/manual/en/filter.filters.sanitize.php. See https://stackoverflow.com/a/69207369 for a discussion of other methods to achieve a similar outcome.

JJJ added a commit that referenced this issue Sep 19, 2024
JJJ added a commit that referenced this issue Sep 19, 2024
@JJJ JJJ linked a pull request Sep 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants