WordPress.org

Make WordPress Core

Ticket #12446: absint-on-postid.patch

File absint-on-postid.patch, 332 bytes (added by jmabe, 4 years ago)
  • comment.php

     
    203203                return $cache; 
    204204        } 
    205205 
    206         $post_id = absint($post_id); 
     206        $post_id = intval($post_id); 
    207207 
    208208        if ( 'hold' == $status ) 
    209209                $approved = "comment_approved = '0'";