mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Ensure that users_can_register is sanitised correctly. See #10454 props josephscott.
git-svn-id: https://develop.svn.wordpress.org/trunk@11772 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user