[wp-trac] [WordPress Trac] #19085: Removing First Submenu Page in Admin Menu breaks URL for Menu Page

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 29 20:06:40 UTC 2011


#19085: Removing First Submenu Page in Admin Menu breaks URL for Menu Page
----------------------------+------------------------------
 Reporter:  mikeschinkel    |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.1
 Severity:  major           |  Resolution:
 Keywords:  needs-patch     |
----------------------------+------------------------------
Changes (by ocean90):

 * version:  3.2 => 3.1


Comment:

 This also happens for the default ''post'' post type.

 {{{
 add_action( 'admin_menu', 'ds_remove_first' );

 function ds_remove_first() {
         remove_submenu_page( 'edit.php', 'edit.php' );
 }
 }}}

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


More information about the wp-trac mailing list