Changeset 1515
- Timestamp:
- 08/08/2004 05:01:13 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/user-edit.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/user-edit.php
r1507 r1515 3 3 4 4 $title = __('Edit User'); 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 } 5 20 6 21 $wpvarstoreset = array('action', 'standalone', 'redirect', 'profile', 'user_id'); … … 18 33 } 19 34 } 20 }21 22 if (!get_magic_quotes_gpc()) {23 $_POST = add_magic_quotes($_POST);24 35 } 25 36
Note: See TracChangeset
for help on using the changeset viewer.