Make sure sanitize_option() is always called when updating options.

git-svn-id: https://develop.svn.wordpress.org/trunk@5541 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-05-25 02:22:30 +00:00
parent bbc3f93aad
commit c018ceb6bd
3 changed files with 71 additions and 72 deletions

View File

@@ -315,6 +315,8 @@ function update_option($option_name, $newvalue) {
wp_protect_special_option($option_name);
$newvalue = sanitize_option($option_name, $newvalue);
if ( is_string($newvalue) )
$newvalue = trim($newvalue);