[wp-trac] [WordPress Trac] #16946: Bug between CPT menu_position and add_object_page()

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 14 13:42:43 UTC 2011


#16946: Bug between CPT menu_position and add_object_page()
----------------------------+-----------------------------
 Reporter:  momo360modena   |       Owner:  scribu
     Type:  defect (bug)    |      Status:  reviewing
 Priority:  normal          |   Milestone:  Future Release
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |
----------------------------+-----------------------------

Comment (by layotte):

 The last patch added does not seem to fix this for me. I just ran into
 this problem with another developer's plugin overwriting my plugin's menu
 position. His plugin is available here:
 http://wordpress.org/extend/plugins/twitter-plugin/ mine is here:
 http://wordpress.org/extend/plugins/leenkme/

 In his most recent version, he is calling:
 add_menu_page(__('BWS Plugins'), __('BWS Plugins'), 'manage_options',
 'bws_plugins', 'bws_add_menu_render', WP_CONTENT_URL."/plugins/twitter-
 plugin/images/px.png", 101);

 Which for some reason is over witing my plugin, which does not use the
 position argument.

 For what it's worth, blepoxp's patch works fine for me. Of course, I've
 emailed the developer and told him to remove the position argument. I'm
 sure it affects more than just my plugin.

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


More information about the wp-trac mailing list