Admin functions cleanup, and change how we do titles and parents in the backend

git-svn-id: https://develop.svn.wordpress.org/trunk@4478 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2006-11-18 06:09:48 +00:00
parent b973ee2e7d
commit 6af3bdbb32
35 changed files with 800 additions and 875 deletions
+8 -2
View File
@@ -3,7 +3,13 @@
$self = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
$self = preg_replace('|^.*/plugins/|i', '', $self);
get_admin_page_parent();
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;
}
}
foreach ($menu as $item) {
$class = '';
@@ -62,4 +68,4 @@ endif;
do_action('admin_notices');
?>
?>