mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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