Deprecate exiting admin menu functions and add new ones that accept an $args parameter instead
|Reported by:||mikeschinkel||Owned by:|
Compared to the many other APIs that accept $args the admin menu functions (add_menu_page(), add_submenu_page(), etc.) are less accessible because of the 6 and 7 ordinal parameters are hard to remember and easy to get wrong.
Suggestion is to deprecate those functions and replace with functional equivalents that use an $args array. Since the functions are for admin menus but the names of the functions appear to be generic, we could easily name these proposed functions add_admin_menu_page() and add_admin_submenu_page().
Change History (13)
- Milestone Awaiting Review deleted
- Resolution set to maybelater
- Status changed from new to closed
comment:5 @markjaquith — 4 years ago
- Milestone set to 3.2
- Resolution maybelater deleted
- Status changed from closed to reopened