[wp-trac] [WordPress Trac] #52035: The `add_submenu_page()` position is ignored.
WordPress Trac
noreply at wordpress.org
Wed Feb 2 15:20:14 UTC 2022
#52035: The `add_submenu_page()` position is ignored.
----------------------------+------------------------------
Reporter: Howdy_McGee | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: administration
----------------------------+------------------------------
Comment (by leogermani):
Hi @mukesh27 ,
I just stumbled upon this bug and had a look at your patch.
It doesn't solve the problem if there are multiple submenus being
registered because apparently array keys get reset and the last menu
registered will always end up in the last position.
I suggest start by writing some tests so we can cover many different
situations. I'm happy to help testing and giving feedback to move this
ticket forward.
And in the meantime I'm going to look for a workaround to my problem :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52035#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list