Ensure that users_can_register is sanitised correctly. See #10454 props josephscott.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bbefcaca3b
commit
c484dd5c17
|
@ -2351,7 +2351,8 @@ function sanitize_option($option, $value) {
|
|||
case 'close_comments_days_old':
|
||||
case 'comments_per_page':
|
||||
case 'thread_comments_depth':
|
||||
$value = abs((int) $value);
|
||||
case 'users_can_register':
|
||||
$value = absint( $value );
|
||||
break;
|
||||
|
||||
case 'posts_per_page':
|
||||
|
|
Loading…
Reference in New Issue