This is something that might need to be passed down to your development team. When running with DEBUG on in PHP 8.2.4 I receive the following message when calling:
toolset_get_related_posts
Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in\\wp-includes\formatting.php on line 1596 it shows dozens of times.
I can suppress the message with @toolset_get_related_posts but that isn't a proper process. I would assume if your development team is running proper unit tests this should show-up in the logs at some point, if not I thought they might want to know.
Anyways its not a critical error, but would be nice to clean up, to provide a more stable and better performant code base. To have true PHP 8 support deprecation errors should be analyzed and fixed.
Thanks
Hi there,
Thank you for the message. We are in the process of cleaning up the deprecation messages and till now eliminated many instances.
Just to make sure we are on the same page, Is this happening on PHP 8.0.x?
As current testing is done on that version. Actually, WordPress itself does not claim to have compatibility with 8.2.x yet.
But this is for sure an ongoing refactoring that is going on in our codebase.
Thanks.
Ok thanks! Yeah I'm on 8.2... Looking forward to it becoming compliant!
Thanks