Show
Ignore:
Timestamp:
09/11/07 20:24:42 (1 year ago)
Author:
ryan
Message:

Fix option sanitization slashing. fixes #4949 for 2.2

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.2/wp-admin/options.php

    r5915 r6083  
    3030        foreach ($options as $option) { 
    3131            $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); 
    3435            update_option($option, $value); 
    3536        }