mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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);
|
$value = clean_url($value);
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
|
$value = apply_filters("sanitize_option_{$option}", $value, $option);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user