Make WordPress Core


Ignore:
Timestamp:
06/04/2007 05:43:22 PM (18 years ago)
Author:
ryan
Message:

Run comment_text filter before format_to_edit() when getting a comment to edit. fixes #4403 for 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/comment.php

    r5566 r5646  
    4747    $comment->comment_post_ID = (int) $comment->comment_post_ID;
    4848
    49     $comment->comment_content = format_to_edit( $comment->comment_content, user_can_richedit() );
     49    $comment->comment_content = apply_filters( 'comment_text', $comment->comment_content );
     50    $comment->comment_content = format_to_edit( $comment->comment_content );
    5051    $comment->comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content);
    51     $comment->comment_content = apply_filters( 'comment_text', $comment->comment_content );
    5252
    5353    $comment->comment_author = format_to_edit( $comment->comment_author );
Note: See TracChangeset for help on using the changeset viewer.