Changeset 6700
- Timestamp:
- 01/31/2008 10:03:48 PM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/profile-update.php
r6699 r6700 2 2 3 3 require_once('admin.php'); 4 5 $parent_file = 'profile.php';6 $submenu_file = 'profile.php';7 4 8 5 check_admin_referer('update-profile_' . $user_ID); -
trunk/wp-admin/profile.php
r6697 r6700 1 1 <?php 2 $is_profile_page = true;2 define('IS_PROFILE_PAGE', true); 3 3 require_once('user-edit.php'); 4 4 ?> -
trunk/wp-admin/user-edit.php
r6697 r6700 1 1 <?php 2 3 $is_profile_page = isset($is_profile_page) && $is_profile_page? true : false;4 2 5 3 require_once('admin.php'); 4 5 if ( defined('IS_PROFILE_PAGE') && IS_PROFILE_PAGE ) 6 $is_profile_page = true; 7 else 8 $is_profile_page = false; 6 9 7 10 function profile_js ( ) { … … 53 56 $title = $is_profile_page? __('Profile') : __('Edit User'); 54 57 if ( current_user_can('edit_users') && !$is_profile_page ) 55 $ parent_file = 'users.php';58 $submenu_file = 'users.php'; 56 59 else 57 $ parent_file = 'profile.php';58 $ submenu_file = 'users.php';60 $submenu_file = 'profile.php'; 61 $parent_file = 'users.php'; 59 62 60 63 wp_reset_vars(array('action', 'redirect', 'profile', 'user_id', 'wp_http_referer'));
Note: See TracChangeset
for help on using the changeset viewer.