Changes between Initial Version and Version 3 of Ticket #22022
- Timestamp:
- 01/11/2013 03:34:39 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22022
- Property Cc jjharr added
-
Property
Component
changed from
Menus
toAdministration
-
Ticket #22022 – Description
initial v3 1 1 The following code illustrates the problem. 2 3 add_menu_page( ‘My Pages’, ‘My Pages’, ‘edit_posts’, ‘parentslug’, array(class, func));4 add_submenu_page( ‘parentslug’, ‘Settings’, ‘Settings’, ‘edit_posts’, ‘mysettings’, array(class, func));5 add_submenu_page( ‘parentslug’, ‘Custom Post Type’, ‘Custom Post Type’, ‘edit_posts’, ‘edit.php?post_type=xxx’);6 2 {{{ 3 add_menu_page('My Pages', 'My Pages', 'edit_posts', 'parentslug', array(class, func)); 4 add_submenu_page('parentslug', 'Settings', 'Settings', 'edit_posts', 'mysettings', array(class, func)); 5 add_submenu_page('parentslug', 'Custom Post Type', 'Custom Post Type', 'edit_posts', 'edit.php?post_type=xxx'); 6 }}} 7 7 When you click on the first submenu item, the menu stays open, displaying the submenu items as it should. When you click on the item for the custom post type, the parent menu is closed and submenu pages are not displayed. 8 8