Allow plugins to sanitize there own options easily.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
223182463d
commit
d1acf020b5
|
@ -1194,6 +1194,7 @@ function sanitize_option($option, $value) { // Remember to call stripslashes!
|
|||
$value = clean_url($value);
|
||||
break;
|
||||
default :
|
||||
$value = apply_filters("sanitize_option_{$option}", $value, $option);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue