[wp-trac] [WordPress Trac] #21445: add_object_page() from admin_menu action: overwrites last menu
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 1 21:00:13 UTC 2012
#21445: add_object_page() from admin_menu action: overwrites last menu
---------------------------+-----------------------------
Reporter: scottconnerly | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.4.1
Severity: normal | Keywords:
---------------------------+-----------------------------
When the action admin_menu is fired, I have seen add_object_page()
overwrite the last custom post type menu item. $_wp_last_object_menu is
supposed to control this, but in this case, it failed.
Custom post types occupied menu positions 26 - 34. then calling
add_object_page() at admin_menu overwrote position 34.
Changing the last post type's position to be 40 (so custom post types now
occupy positions 26-33, 40), then add_object_page still resides in
position 34, and the last post type still resides in 40.
Looking at the code, I can't find the bug myself, would appreciate
assistance in pinning down the root cause.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21445>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list