Opened 12 years ago
Closed 9 years ago
#23108 closed enhancement (fixed)
Deprecate add_object_page() and add_utility_page()
Reported by: | SergeyBiryukov | Owned by: | swissspidy |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
add_object_page()
and add_utility_page()
are not used in core and are just wrappers which pass $_wp_last_object_menu++
and $_wp_last_utility_menu++
, respectively, to add_menu_page()
.
This can lead to a conflict with other menu items added by plugins, see #23095.
Attachments (3)
Change History (16)
#7
@
12 years ago
23108.2.patch adds the _deprecated_function()
calls.
#9
@
10 years ago
Just ran into an issue with a plugin using add_object_page on too many items and overwriting other entries. Searched for an issue and ended up here.
I'd agree this should be deprecated but for the time being why not just ditch the whole $_wp_last_object_menu++; in add_object_page and have it pass null to add_menu_page?
Note: See
TracTickets for help on using
tickets.
Related: [9537], [9949], [11856].