Allow plugins to sanitize there own options easily.
git-svn-id: https://develop.svn.wordpress.org/trunk@6096 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
41bd579f15
commit
2c1f68efe3
|
@ -1194,6 +1194,7 @@ function sanitize_option($option, $value) { // Remember to call stripslashes!
|
||||||
$value = clean_url($value);
|
$value = clean_url($value);
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
|
$value = apply_filters("sanitize_option_{$option}", $value, $option);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue