You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yoast SEO uses its own methods for the admin menu but in the end it uses add_submenu_page().
$position is now the add_submenu_page() 7th argument. and this is incompatible with the way
the function is used in Yoast SEO, where a 7th parameter isn't actually passed but it's used for a "hook callback". See for example WPSEO_Base_Menu->register_submenu_page() and WPSEO_Base_Menu->get_submenu_page().
Please give us a description of what happened.
Noticed while investigating on #14196
WordPress 5.3 added a
$position
argument to all these functions:See related WordPress Trac changeset and ticket:
https://core.trac.wordpress.org/changeset/46197
https://core.trac.wordpress.org/ticket/39776
Yoast SEO uses its own methods for the admin menu but in the end it uses
add_submenu_page()
.$position
is now theadd_submenu_page()
7th argument. and this is incompatible with the waythe function is used in Yoast SEO, where a 7th parameter isn't actually passed but it's used for a "hook callback". See for example
WPSEO_Base_Menu->register_submenu_page()
andWPSEO_Base_Menu->get_submenu_page()
.wordpress-seo/admin/menu/class-base-menu.php
Lines 170 to 197 in eb1095a
See also this comment on the WordPress Trac follow-up ticket
https://core.trac.wordpress.org/ticket/48599#comment:8
The text was updated successfully, but these errors were encountered: