Opened 5 months ago

Last modified 8 days ago

#23108 new enhancement

Deprecate add_object_page() and add_utility_page()

Reported by: SergeyBiryukov Owned by:
Priority: normal Milestone: Future Release
Component: Administration Version:
Severity: normal Keywords: has-patch
Cc: chriscct7@…, pippin@…

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 (2)

23108.patch (5.7 KB) - added by SergeyBiryukov 5 months ago.
23108.2.patch (5.8 KB) - added by ocean90 5 months ago.

Download all attachments as: .zip

Change History (10)

  • Keywords has-patch added

+1

  • Milestone changed from Awaiting Review to 3.6
  • Cc chriscct7@… added

+1

  • Cc pippin@… added

23108.2.patch adds the _deprecated_function() calls.

comment:8   ryan8 days ago

  • Milestone changed from 3.6 to Future Release
Note: See TracTickets for help on using tickets.