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

git-svn-id: http://svn.automattic.com/wordpress/trunk@5541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2007-05-25 02:22:30 +00:00
parent 677b609ee2
commit 92e7d3c3bc
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);