WordPress.org

Make WordPress Core

Ticket #4387: comment.patch

File comment.patch, 712 bytes (added by hovenko, 7 years ago)

Fixes a typo in comments cache

  • crypto/home/hovenko/workspace/NRK

     
    8484                $comment = (int) $comment; 
    8585                if ( !isset($comment_cache[$comment]) ) { 
    8686                        $_comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID = '$comment' LIMIT 1"); 
    87                         $comment_cache[$comment->comment_ID] = & $_comment; 
     87                        $comment_cache[$_comment->comment_ID] = & $_comment; 
    8888                } else { 
    8989                        $_comment = & $comment_cache[$comment]; 
    9090                }