[wp-trac] [WordPress Trac] #23316: Top level admin sidebar menu items with conflicting positions bury one another

WordPress Trac noreply at wordpress.org
Tue Apr 22 19:49:33 UTC 2014


#23316: Top level admin sidebar menu items with conflicting positions bury one
another
-------------------------------------------------+-------------------------
 Reporter:  beautomated                          |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Administration                       |  Review
 Severity:  major                                |     Version:  3.5.1
 Keywords:  dev-feedback needs-refresh 2nd-      |  Resolution:
  opinion                                        |     Focuses:
-------------------------------------------------+-------------------------
Changes (by desaiuditd):

 * keywords:   => dev-feedback needs-refresh 2nd-opinion


Comment:

 Just to add a point; Custom Post Type Menu Positions does not allow float
 / string positions.
 Because of the followinf code snippet in wp-admin/menu.php (Line 108)

 {{{
 $ptype_menu_position = is_int( $ptype_obj->menu_position ) ?
 $ptype_obj->menu_position : ++$_wp_last_object_menu; // If we're to use
 $_wp_last_object_menu, increment it first.
 }}}

 It forces to have an integer value otherwise it will assign ext
 incremented position for the custom post type menu.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/23316#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list