[wp-trac] [WordPress Trac] #23108: Deprecate add_object_page() and add_utility_page()

WordPress Trac noreply at wordpress.org
Wed Feb 4 00:02:33 UTC 2015


#23108: Deprecate add_object_page() and add_utility_page()
----------------------------+-----------------------------
 Reporter:  SergeyBiryukov  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------------

Comment (by jamesgol):

 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?

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


More information about the wp-trac mailing list