[wp-trac] [WordPress Trac] #40927: Passing a float as the position in add_menu_page can override other menu items

WordPress Trac noreply at wordpress.org
Tue Mar 22 06:07:16 UTC 2022


#40927: Passing a float as the position in add_menu_page can override other menu
items
-------------------------------------------------+-------------------------
 Reporter:  justinbusa                           |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  6.0
Component:  Administration                       |     Version:  4.8
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch dev-feedback needs-        |     Focuses:
  testing                                        |  administration
-------------------------------------------------+-------------------------
Changes (by chaion07):

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


Comment:

 Thanks @justinbusa for reporting this. The core team reviewed this ticket
 recently during a
 [https://wordpress.slack.com/archives/C02RQBWTW/p1647926913626359 bug
 scrub session]. Based on the feedback we're updating the ticket with the
 following:

 01. Added workflow needs-testing & dev-feedback
 02. Suggested approach should be to include the sort taken from $menu and
 applied to $submenu

 Props to @costdev

 Cheers!

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


More information about the wp-trac mailing list