Make WordPress Core

Ticket #25229: comment-php.2.patch

File comment-php.2.patch, 682 bytes (added by mordauk, 11 years ago)

wp-admin/includes/comment.php

  • wp-admin/includes/comment.php

     
    8383        $comment->comment_post_ID = (int) $comment->comment_post_ID;
    8484
    8585        $comment->comment_content = format_to_edit( $comment->comment_content );
     86
     87        /**
     88         * Filter the comment content before editing.
     89         *
     90         * @since 2.0.0
     91         *
     92         * @param string $comment->comment_content Comment content.
     93         */
    8694        $comment->comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content);
    8795
    8896        $comment->comment_author = format_to_edit( $comment->comment_author );