Make WordPress Core

Changeset 1998


Ignore:
Timestamp:
12/24/2004 08:55:36 PM (21 years ago)
Author:
rboren
Message:

Fix menu highlighting for Users. Patch from MooKitty. Bug 577.

Location:
trunk/wp-admin
Files:
5 edited

Legend:

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

    r1958 r1998  
    3737
    3838if ( (substr($self, -10) == substr($item[2], -10)) || (isset($plugin_page) && $plugin_page == $item[2]) ) $class = ' class="current"';
    39     else $class = '';
     39else if (isset($submenu_file) && $submenu_file == substr($item[2], -10)) $class = ' class="current"';   
     40else $class = '';
    4041
    4142if (file_exists(ABSPATH . "wp-content/plugins/{$item[2]}"))
  • trunk/wp-admin/menu.php

    r1958 r1998  
    3232$submenu['link-manager.php'][20] = array(__('Import Links'), 5, 'link-import.php');
    3333
    34 $submenu['users.php'][5] = array(__('Your Profile'), 0, 'profile.php');
    35 $submenu['users.php'][10] = array(__('Authors & Users'), 5, 'users.php');
     34$submenu['profile.php'][5] = array(__('Your Profile'), 0, 'profile.php');
     35$submenu['profile.php'][10] = array(__('Authors & Users'), 5, 'users.php');
    3636
    3737$submenu['options-general.php'][5] = array(__('General'), 6, 'options-general.php');
  • trunk/wp-admin/profile.php

    r1961 r1998  
    120120
    121121default:
    122     $parent_file = 'users.php';
     122    $parent_file = 'profile.php';
    123123    include_once('admin-header.php');
    124124    $profiledata=get_userdata($user_ID);
  • trunk/wp-admin/user-edit.php

    r1971 r1998  
    33
    44$title = __('Edit User');
     5$parent_file = 'profile.php';   
     6$submenu_file = 'users.php';
    57
    68$wpvarstoreset = array('action', 'redirect', 'profile', 'user_id');
     
    7678
    7779default:
    78    
    7980include ('admin-header.php');
    8081
     
    8384if ($edituser->user_level >= $user_level) die( __('You do not have permission to edit this user.') );
    8485?>
    85 <ul id="adminmenu2">
    86     <li><a href="profile.php"><?php _e('Your Profile') ?></a></li>
    87     <li><a href="users.php" class="current"><?php _e('Authors &amp; Users') ?></a></li>
    88 </ul>
    8986
    9087<?php if ( isset($_GET['updated']) ) : ?>
  • trunk/wp-admin/users.php

    r1971 r1998  
    33
    44$title = __('Users');
    5 $parent_file = 'users.php';
     5$parent_file = 'profile.php';
    66   
    77$wpvarstoreset = array('action');
Note: See TracChangeset for help on using the changeset viewer.