Make WordPress Core


Ignore:
Timestamp:
06/04/2007 05:49:02 PM (17 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/admin-functions.php

    r5550 r5648  
    323323    $comment->comment_post_ID = (int) $comment->comment_post_ID;
    324324
    325     $comment->comment_content = format_to_edit($comment->comment_content, $richedit);
     325    $comment->comment_content = apply_filters( 'comment_text', $comment->comment_content );
     326    $comment->comment_content = format_to_edit($comment->comment_content);
    326327    $comment->comment_content = apply_filters('comment_edit_pre', $comment->comment_content);
    327     $comment->comment_content = apply_filters( 'comment_text', $comment->comment_content );
    328328
    329329    $comment->comment_author = format_to_edit($comment->comment_author);
Note: See TracChangeset for help on using the changeset viewer.