Make WordPress Core

Ticket #14261: 14261.diff

File 14261.diff, 775 bytes (added by wojtek.szkutnik, 15 years ago)
  • comment-template.php

     
    601601 */
    602602function get_comment_text( $comment_ID = 0 ) {
    603603        $comment = get_comment( $comment_ID );
    604         return apply_filters('get_comment_text', $comment->comment_content);
     604        return apply_filters('get_comment_text', $comment->comment_content, $comment_ID );
    605605}
    606606
    607607/**
     
    614614 * @param int $comment_ID The ID of the comment for which to print the text. Optional.
    615615 */
    616616function comment_text( $comment_ID = 0 ) {
    617         echo apply_filters('comment_text', get_comment_text() );
     617        echo apply_filters('comment_text', get_comment_text( $comment_ID ), $comment_ID );
    618618}
    619619
    620620/**