Changeset 1818 for trunk/wp-admin/user-edit.php
- Timestamp:
- 10/19/2004 03:03:06 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/user-edit.php
r1520 r1818 1 1 <?php 2 require_once(' ../wp-includes/wp-l10n.php');2 require_once('admin.php'); 3 3 4 4 $title = __('Edit User'); 5 5 6 function add_magic_quotes($array) { 7 foreach ($array as $k => $v) { 8 if (is_array($v)) { 9 $array[$k] = add_magic_quotes($v); 10 } else { 11 $array[$k] = addslashes($v); 12 } 13 } 14 return $array; 15 } 16 17 if (!get_magic_quotes_gpc()) { 18 $_POST = add_magic_quotes($_POST); 19 } 20 21 $wpvarstoreset = array('action', 'standalone', 'redirect', 'profile', 'user_id'); 6 $wpvarstoreset = array('action', 'redirect', 'profile', 'user_id'); 22 7 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 23 8 $wpvar = $wpvarstoreset[$i]; … … 84 69 case 'switchposts': 85 70 86 $standalone = 1;87 require_once('admin-header.php');88 89 71 check_admin_referer(); 90 72 … … 95 77 default: 96 78 97 $standalone = 0;98 79 include ('admin-header.php'); 99 80
Note: See TracChangeset
for help on using the changeset viewer.