[wp-trac] Re: [WordPress Trac] #5001: Admin menu generation
sometimes shows wrong page as current
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 18 21:44:49 GMT 2007
#5001: Admin menu generation sometimes shows wrong page as current
------------------------------------+---------------------------------------
Reporter: jhodgdon | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3
Component: Administration | Version: 2.3
Severity: normal | Resolution:
Keywords: admin, menu, has-patch |
------------------------------------+---------------------------------------
Comment (by jhodgdon):
Hmmm... The suggested patch of resetting the $parent_now variable doesn't
entirely work. It fixes the main menu problem, but now when I click on the
Options page, it shows that the current menu item is the Manage submenu
page, which is wrong.
I fixed this by adding a bit to the matching code in the
get_admin_page_parent function, being careful not to wreck the matching
for submenu pages.
Patch coming shortly -- it was tested in [6124] with the previously-
attached plugin.
--
Ticket URL: <http://trac.wordpress.org/ticket/5001#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list