Changeset 6083 for branches/2.2/wp-admin/options.php
- Timestamp:
- 09/11/2007 08:24:42 PM (19 years ago)
- File:
-
- 1 edited
-
branches/2.2/wp-admin/options.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/wp-admin/options.php
r5915 r6083 30 30 foreach ($options as $option) { 31 31 $option = trim($option); 32 $value = trim($_POST[$option]); 33 $value = sanitize_option($option, $value); // This does stripslashes on those that need it 32 $value = $_POST[$option]; 33 if(!is_array($value)) $value = trim($value); 34 $value = stripslashes_deep($value); 34 35 update_option($option, $value); 35 36 }
Note: See TracChangeset
for help on using the changeset viewer.