Sanitize a few options
git-svn-id: https://develop.svn.wordpress.org/trunk@5914 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2e06f333d5
commit
c10c02374b
|
@ -1128,6 +1128,11 @@ function sanitize_option($option, $value) { // Remember to call stripslashes!
|
||||||
case 'default_post_edit_rows':
|
case 'default_post_edit_rows':
|
||||||
case 'mailserver_port':
|
case 'mailserver_port':
|
||||||
case 'comment_max_links':
|
case 'comment_max_links':
|
||||||
|
case 'page_on_front':
|
||||||
|
case 'rss_excerpt_length':
|
||||||
|
case 'default_category':
|
||||||
|
case 'default_email_category':
|
||||||
|
case 'default_link_category':
|
||||||
$value = abs((int) $value);
|
$value = abs((int) $value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue