[wp-trac] [WordPress Trac] #32088: Bug in get_admin_page_parent( $parent = '' ) when only having 1 Sub-Menu-Item

WordPress Trac noreply at wordpress.org
Thu Apr 23 21:36:33 UTC 2015


#32088: Bug in get_admin_page_parent( $parent = '' ) when only having 1 Sub-Menu-
Item
------------------------------+------------------------------
 Reporter:  iamwordimpressed  |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Menus             |     Version:  4.1.2
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------

Comment (by iamwordimpressed):

 Important Note: Maybe the {{{get_admin_page_parent( $parent = '' )}}}
 logic is correct, yet. But the code using the result is incorrect. As
 there is no documentation how this method, and the method that uses the
 result should behave if there is only one Main Menu item (without any sub
 menu items) I can not really tell.

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


More information about the wp-trac mailing list