related-posts-for-wp icon indicating copy to clipboard operation
related-posts-for-wp copied to clipboard

Fix PHP deprecation warnings in PHP 8.1

Open ocean90 opened this issue 1 year ago • 0 comments

Passing null to add_submenu_page() as the first argument is causing various PHP deprecation warnings because WordPress expects the parent argument to be a string.

The fix would be to just use an empty string instead.

In the premium version you should also set $parent = '' in RP4WP_Hook_Settings_Page:run(). Thanks!

ocean90 avatar May 19 '23 09:05 ocean90