[wpmu-trac] [WordPress MU Trac] #849: add_menu_page creating different URLs in top admin bar and sidebar

WordPress MU Trac wpmu-trac at lists.automattic.com
Mon Jan 19 05:19:09 GMT 2009


#849: add_menu_page creating different URLs in top admin bar and sidebar
----------------------------+-----------------------------------------------
 Reporter:  gortsleigh      |       Owner:  somebody         
     Type:  defect          |      Status:  new              
 Priority:  high            |   Milestone:  2.7              
Component:  Administration  |     Version:  2.7              
 Severity:  normal          |    Keywords:  admin menu wpabar
----------------------------+-----------------------------------------------
 '''(wpmu trunk svn r1603 2.7-bleeding-edge)
 '''

 My plugin code calls add_menu_page with no submenus in the admin area of
 WPMU.  The URL generated for the side panel (ul#adminmenu) is correct, of
 the form
 {{{
 /wp-admin/admin.php?page=myplugindir/myplugin.php
 }}}

 But the URL generated for the top wpabar is incorrect, of the form
 {{{
  /wp-admin/myplugindir/myplugin.php
 }}}

 This appears to be exactly the problem described in the WP issue here:
 http://trac.wordpress.org/ticket/7841

 I noticed that on at least one plugin that generates a menu with submenus,
 some but not all of the URLs are correct.  For instance, cforms v10.1 has
 correct links for the top level and 3 of the four submenus, but the second
 submenu generates an invalid URL.  The code appears to be calling
 add_submenu the same way for all 4 submenus.  Again, all the URLs for the
 admin sidebar are correctly generated.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/849>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list