WordPress.org

Make WordPress Core

Changeset 5886


Ignore:
Timestamp:
08/16/07 19:55:19 (8 years ago)
Author:
ryan
Message:

Don't trim option arrays on save. Props m0n5t3r, Nazgul. fixes #4571

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options.php

    r5832 r5886  
    3030        foreach ($options as $option) { 
    3131            $option = trim($option); 
    32             $value = trim($_POST[$option]); 
    33             $value = stripslashes($value); 
     32            $value = $_POST[$option]; 
     33            if(!is_array($value))   $value = trim($value); 
     34            $value = stripslashes_deep($value); 
    3435            update_option($option, $value); 
    3536        } 
Note: See TracChangeset for help on using the changeset viewer.