Hold off on menu cleanup until next release. There be dragons.

git-svn-id: https://develop.svn.wordpress.org/trunk@4480 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-11-18 07:31:29 +00:00
parent ce231b2bc2
commit 7e226f1a94
33 changed files with 115 additions and 30 deletions
+2 -8
View File
@@ -3,13 +3,7 @@
$self = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
$self = preg_replace('|^.*/plugins/|i', '', $self);
foreach ( $submenu as $parent => $subpages ) {
foreach ( $subpages as $page ) {
// 0 menu title, 1 cap, 2 file or slug, 3 page title
if ( $self == $page[2] )
$parent_file = $parent;
}
}
get_admin_page_parent();
foreach ($menu as $item) {
$class = '';
@@ -68,4 +62,4 @@ endif;
do_action('admin_notices');
?>
?>