[wp-trac] [WordPress Trac] #20878: Invalid get_admin_page_parent(), after use of remove_submenu_page()
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 7 16:24:43 UTC 2012
#20878: Invalid get_admin_page_parent(), after use of remove_submenu_page()
----------------------------+------------------------------
Reporter: hinok | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.3.2
Severity: major | Resolution:
Keywords: |
----------------------------+------------------------------
Comment (by hinok):
Ok, now my wordpress menu open correctly, new one line of code :)
{{{
global $_parent_pages;
// global $plugin_page; // globalized above
foreach ($_parent_pages as $key => $value) {
if ( $key == $plugin_page ) {
$parent_file = $value; // magic
return $value;
}
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20878#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list