[wp-trac] [WordPress Trac] #39776: add priority argument to add_submenu_page() function
WordPress Trac
noreply at wordpress.org
Fri Sep 20 14:59:15 UTC 2019
#39776: add priority argument to add_submenu_page() function
---------------------------------------------+-----------------------------
Reporter: alexvorn2 | Owner: welcher
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.3
Component: Menus | Version: 4.7.2
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: administration
---------------------------------------------+-----------------------------
Changes (by adamsilverstein):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"46197" 46197]:
{{{
#!CommitTicketReference repository="" revision="46197"
Menus: add a position argument to `add_submenu_page` and the helper
functions that use it.
Add a position argument to the `add_submenu_page` function similar to the
one already in `add_menu_page`. When adding sub menus enables setting the
position in the sub menu where the item should appear.
In addition, add the position argument to functions that call
`add_submenu_page` under the hood: `add_management_page`,
`add_options_page`, `add_theme_page`, `add_plugins_page`,
`add_users_page`, `add_dashboard_page`, `add_posts_page`,
`add_media_page`, `add_links_page`, `add_pages_page` and
`add_comments_page`.
Props welcher, birgire, alexvorn2.
Fixes #39776.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39776#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list