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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user