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

WordPress Trac noreply at wordpress.org
Wed Sep 11 03:16:08 UTC 2019


#39776: add priority argument to add_submenu_page() function
-------------------------------------------------+-------------------------
 Reporter:  alexvorn2                            |       Owner:  welcher
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.3
Component:  Menus                                |     Version:  4.7.2
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch dev-feedback needs-        |     Focuses:
  testing has-unit-tests                         |  administration
-------------------------------------------------+-------------------------
Changes (by welcher):

 * keywords:  has-patch dev-feedback needs-testing needs-unit-tests => has-
     patch dev-feedback needs-testing has-unit-tests


Comment:

 @adamsilverstein @birgire I've added some tests and made some changes to
 the logic. Now, if any negative number is passed, the new menu is added at
 the beginning of the list. If a number larger than the number of items is
 passed, it is appended to the end.

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


More information about the wp-trac mailing list