wp-safe-edit
wp-safe-edit copied to clipboard
PHP 8.1/2 deprecation notices
Describe the bug
While running PHP 8.1 and PHP 8.2, I am seeing deprecation notices in my debug log.
[16-Oct-2023 15:27:23 UTC] PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7127
[16-Oct-2023 15:27:23 UTC] PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2182
[16-Oct-2023 15:27:23 UTC] PHP Deprecated: rawurldecode(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-content/plugins/wp-safe-edit/includes/Posts/Notices.php on line 39
[16-Oct-2023 15:27:23 UTC] PHP Deprecated: rawurldecode(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-content/plugins/wp-safe-edit/includes/Posts/Notices.php on line 62
Happy to submit a PR if it is helpful.
Steps to Reproduce
- create install running on PHP 8.1 or 8.2
- clone this repo
- activate plugin
- go to main wp-admin dashboard
- inspect debug.log for notices
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct