diff --git a/wp-includes/post.php b/wp-includes/post.php index 959591aaa3..a9c2acb4d6 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1989,7 +1989,7 @@ function sanitize_post($post, $context = 'display') { * @return mixed Sanitized value. */ function sanitize_post_field($field, $value, $post_id, $context) { - $int_fields = array('ID', 'post_parent', 'menu_order'); + $int_fields = array('ID', 'post_parent', 'menu_order', 'post_author', 'comment_count'); if ( in_array($field, $int_fields) ) $value = (int) $value;