[wp-trac] [WordPress Trac] #57580: Avoid errors from null parameters in add_submenu_page()
WordPress Trac
noreply at wordpress.org
Sat Apr 20 03:12:19 UTC 2024
#57580: Avoid errors from null parameters in add_submenu_page()
------------------------------------------+-----------------------------
Reporter: ipajen | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: General | Version:
Severity: normal | Resolution:
Keywords: PHP81 has-patch dev-feedback | Focuses: administration
------------------------------------------+-----------------------------
Comment (by siliconforks):
Wouldn't it be better to make `add_submenu_page()` work without warnings
using `null` as the first parameter, instead of failing?
As it stands now, isn't this PR a breaking change? Because right now this
trick (of passing `null`) actually does in fact work - it just gives a
warning. If this PR is applied it will break any plugin that is doing
this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57580#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list