Make WordPress Core

Ticket #38314: 38314.diff

File 38314.diff, 1.3 KB (added by vaishu.agola27, 8 years ago)

Changed Documentation of 'comment_text' filter and passed null values in check_comment()

  • src/wp-includes/comment-template.php

     
    988988         *
    989989         * @see Walker_Comment::comment()
    990990         *
    991          * @param string     $comment_text Text of the current comment.
    992          * @param WP_Comment $comment      The comment object.
    993          * @param array      $args         An array of arguments.
     991         * @param string          $comment_text Text of the current comment.
     992         * @param null|WP_Comment $comment      Comment object if available.
     993         * @param null|array      $args         An array of arguments if available.
    994994         */
    995995        echo apply_filters( 'comment_text', $comment_text, $comment, $args );
    996996}
  • src/wp-includes/comment.php

     
    4444                return false;
    4545
    4646        /** This filter is documented in wp-includes/comment-template.php */
    47         $comment = apply_filters( 'comment_text', $comment );
     47        $comment = apply_filters( 'comment_text', $comment, null, null );
    4848
    4949        // Check for the number of external links if a max allowed number is set.
    5050        if ( $max_links = get_option( 'comment_max_links' ) ) {