Changeset 6083
- Timestamp:
- 09/11/2007 08:24:42 PM (18 years ago)
- Location:
- branches/2.2
- Files:
-
- 2 edited
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 } -
branches/2.2/wp-includes/functions.php
r5830 r6083 311 311 312 312 $safe_option_name = $wpdb->escape($option_name); 313 $newvalue = sanitize_option($option_name, $newvalue); 313 314 314 315 if ( is_string($newvalue) )
Note: See TracChangeset
for help on using the changeset viewer.