diff --git wp-includes/post.php wp-includes/post.php
index dee484e..ce1a480 100644
|
|
function sanitize_post($post, $context = 'display') { |
1723 | 1723 | * @return mixed Sanitized value. |
1724 | 1724 | */ |
1725 | 1725 | function sanitize_post_field($field, $value, $post_id, $context) { |
1726 | | $int_fields = array('ID', 'post_parent', 'menu_order'); |
| 1726 | $int_fields = array('ID', 'post_parent', 'menu_order', 'post_author', 'comment_count'); |
1727 | 1727 | if ( in_array($field, $int_fields) ) |
1728 | 1728 | $value = (int) $value; |
1729 | 1729 | |