related-posts-for-wp
related-posts-for-wp copied to clipboard
Fix PHP deprecation warnings in PHP 8.1
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!