Make WordPress Core


Ignore:
Timestamp:
11/18/2006 06:09:48 AM (18 years ago)
Author:
matt
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu-header.php

    r4443 r4478  
    44$self = preg_replace('|^.*/plugins/|i', '', $self);
    55
    6 get_admin_page_parent();
     6foreach ( $submenu as $parent => $subpages ) {
     7    foreach ( $subpages as $page ) {
     8    // 0 menu title, 1 cap, 2 file or slug, 3 page title
     9        if ( $self == $page[2] )
     10            $parent_file = $parent;
     11    }
     12}
    713
    814foreach ($menu as $item) {
Note: See TracChangeset for help on using the changeset viewer.