[wp-trac] [WordPress Trac] #16808: Insufficient permissions for custom post type management and custom role/caps

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 9 22:04:02 UTC 2011


#16808: Insufficient permissions for custom post type management and custom
role/caps
-----------------------------+------------------------------
 Reporter:  Genesis2001      |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Role/Capability  |     Version:  3.1
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by Genesis2001):

 'argus' is a custom menu I have which I use to group my CPT's together
 instead of all-over my Admin CP.

 {{{
                 add_menu_page( 'Argus', 'Argus Admin', 'argus', 'argus',
 array( &$this, '_wp_argus_main_panel' ), '', -1 );
                 add_submenu_page( 'argus', 'Argus Administration',
 'Control Panel', 'argus', 'argus', array( &$this, '_wp_argus_main_panel' )
 );
 }}}

 I use the same slug for both menus there because of the duplicate menu
 item that gets generated. I did however test it by changing the submenu to
 'arguscp' and that created a second sub-menu (undesired if add_menu_page
 also creates an identical sub-menu underneath itself). Same behaviour
 occurred when I did so ("Insufficient Permissions" error)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16808#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list