[wp-trac] [WordPress Trac] #18622: register_post_type menu_position conflict with add_menu_page

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 8 21:43:18 UTC 2011


#18622: register_post_type menu_position conflict with add_menu_page
--------------------------+------------------------------
 Reporter:  lambje        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Menus         |     Version:  3.2.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------
Description changed by scribu:

Old description:

> Today I was apprised of an issue where my plugin's menu was not being
> displayed in the Admin sidebar nav.  My plugin is "WEBphysiology
> Portfolio".  The menus are initially set by specifying
>
> menu_position => 5
>
> during the register_post_type call.  This has been placing it right below
> the Posts menu section.  The register_post_type function is being called
> during "init".
>
> The conflict found today was with the plugin "W4 Post List".  They setup
> their Admin plugin menus by using the add_menu_page function and they
> specify a position of '6' (with single quotes).  When I changed this to
> '7' it shifted down, allowing my plugin's menu to appear.
>
> This is rather frustrating and really should be handled by the code that
> builds out the menu, such that two menus cannot be positioned in the same
> location.
>
> I don't think this is a duplicate of ticket 16856 but noting that ticket
> just the same.

New description:

 Today I was apprised of an issue where my plugin's menu was not being
 displayed in the Admin sidebar nav.  My plugin is "WEBphysiology
 Portfolio".  The menus are initially set by specifying

 menu_position => 5

 during the register_post_type call.  This has been placing it right below
 the Posts menu section.  The register_post_type function is being called
 during "init".

 The conflict found today was with the plugin "W4 Post List".  They setup
 their Admin plugin menus by using the add_menu_page function and they
 specify a position of '6' (with single quotes).  When I changed this to
 '7' it shifted down, allowing my plugin's menu to appear.

 This is rather frustrating and really should be handled by the code that
 builds out the menu, such that two menus cannot be positioned in the same
 location.

 I don't think this is a duplicate of ticket #16856 but noting that ticket
 just the same.

--

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


More information about the wp-trac mailing list