[wp-trac] [WordPress Trac] #14755: more than 5 custom post types screws up menu_position parameter

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 30 20:51:09 UTC 2011


#14755: more than 5 custom post types screws up menu_position parameter
----------------------------------------------+-------------------------
 Reporter:  stunnaboi                         |       Owner:
     Type:  defect (bug)                      |      Status:  closed
 Priority:  normal                            |   Milestone:
Component:  General                           |     Version:  3.0.1
 Severity:  minor                             |  Resolution:  maybelater
 Keywords:  menu_position, custom post types  |
----------------------------------------------+-------------------------

Comment (by antwortzeit):

 Wrote a small fix for one of my projects, that gives us a little more
 Space. Kind of dirty, but maybe some of you may find it useful. So feel
 free to grab...

 function antwortzeit_move_media () {
         global $menu;
         $menu[14] = $menu[10];
         unset($menu[10]);
 }
 add_action('admin_menu', 'antwortzeit_move_media');

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


More information about the wp-trac mailing list