Changeset 1964 for trunk/wp-admin/admin.php
- Timestamp:
- 12/16/2004 02:57:05 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/admin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin.php
r1947 r1964 17 17 $date_format = get_settings('date_format'); 18 18 $time_format = get_settings('time_format'); 19 20 function add_magic_quotes($array) {21 foreach ($array as $k => $v) {22 if (is_array($v)) {23 $array[$k] = add_magic_quotes($v);24 } else {25 $array[$k] = addslashes($v);26 }27 }28 return $array;29 }30 31 if (!get_magic_quotes_gpc()) {32 $_GET = add_magic_quotes($_GET);33 $_POST = add_magic_quotes($_POST);34 $_COOKIE = add_magic_quotes($_COOKIE);35 }36 19 37 20 $wpvarstoreset = array('profile','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback');
Note: See TracChangeset
for help on using the changeset viewer.