[wp-trac] [WordPress Trac] #39776: add priority argument to add_submenu_page() function

WordPress Trac noreply at wordpress.org
Wed Oct 18 12:57:28 UTC 2017


#39776: add priority argument to add_submenu_page() function
------------------------------------+-----------------------------
 Reporter:  alexvorn2               |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  5.0
Component:  Menus                   |     Version:  4.7.2
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  administration
------------------------------------+-----------------------------

Comment (by welcher):

 The ability to set the position is done with the attached patch.

 However, I don't really like how the numbering seems arbitrary. `1` is the
 top but `5` is the second slot and then `10` is the third unless you are
 in the Appearance menu in which case `6` is the third.

 I think we need a way to abstract that away so it's consistent and
 numbered in a sane fashion.

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


More information about the wp-trac mailing list