V2.2.3 Calls add_submenu_page() improperly, barfs errors
-
After upgrading to v2.2.3 in a development environment with errors enabled, I get this at the top of every admin page:
add_submenu_page was called incorrectly. The seventh parameter passed to
add_submenu_page()
should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)This can be fixed by going to plugins/polldaddy/polldaddy.php and changing line #190 from:
$hook = add_submenu_page( $slug, $menu_title, $menu_title, $capability, $menu_slug, $function, ‘div’ );
to
$hook = add_submenu_page( $slug, $menu_title, $menu_title, $capability, $menu_slug, $function, 99);
…which, I hope, you’ll do as quickly as possible in the next release!
- The topic ‘V2.2.3 Calls add_submenu_page() improperly, barfs errors’ is closed to new replies.