[wp-trac] [WordPress Trac] #16212: show_in_menu swaps position with custom menu_page

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 13 02:09:17 UTC 2011


#16212: show_in_menu swaps position with custom menu_page
--------------------------+------------------------------
 Reporter:  WraithKenny   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.1
 Severity:  minor         |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by garyc40):

 Can't reproduce.

 Here's my test case:

 {{{
 add_action( 'init', 'test_register_post_type' );

 function test_register_post_type() {
         register_post_type( 'employee', array(
                 'label' => 'Employees',
                 'description' => 'Employees',
                 'public' => true,
                 'show_ui' => true,
                 'rewrite' => array('slug'=>'test_post_type'),
                 'show_in_menu' => 'test_menu',
         ) );
 }

 add_action('admin_menu', 'test_add_page');
 function test_add_page() {
         add_menu_page('Test Menu', 'Test Menu', 'administrator',
 'test_menu', 'test_menu_page');
 }

 function test_menu_page() {
         echo 'Test Menu Page.';
 }
 }}}

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


More information about the wp-trac mailing list