Make WordPress Core

Ticket #22324: post.php.diff

File post.php.diff, 532 bytes (added by GeertDD, 12 years ago)
  • wp-includes/post.php

    diff --git wp-includes/post.php wp-includes/post.php
    index dee484e..ce1a480 100644
    function sanitize_post($post, $context = 'display') { 
    17231723 * @return mixed Sanitized value.
    17241724 */
    17251725function 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');
    17271727        if ( in_array($field, $int_fields) )
    17281728                $value = (int) $value;
    17291729