wp-safe-edit icon indicating copy to clipboard operation
wp-safe-edit copied to clipboard

PHP 8.1/2 deprecation notices

Open claytoncollie opened this issue 1 year ago • 0 comments

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

  1. create install running on PHP 8.1 or 8.2
  2. clone this repo
  3. activate plugin
  4. go to main wp-admin dashboard
  5. 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

claytoncollie avatar Oct 16 '23 15:10 claytoncollie