[wp-trac] [WordPress Trac] #57580: Avoid errors from null parameters in add_submenu_page()

WordPress Trac noreply at wordpress.org
Mon Feb 12 13:55:13 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
------------------------------------------+-----------------------------
Changes (by swissspidy):

 * keywords:  PHP81 has-patch => PHP81 has-patch dev-feedback
 * milestone:  6.5 => Future Release


Comment:

 Not convinced that adding such a change is worth it. With a
 `_doing_it_wrong` we could at least tell developers that they should fix
 their code. But the current PR just makes the function silently fail.

 Suggesting to close as wontfix.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57580#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list