WordPress.org

Make WordPress Core


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

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

File:
1 edited

Legend:

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

    r5589 r5647  
    403403    $comment->comment_post_ID = (int) $comment->comment_post_ID;
    404404
    405     $comment->comment_content = format_to_edit( $comment->comment_content, user_can_richedit() );
     405    $comment->comment_content = apply_filters( 'comment_text', $comment->comment_content );
     406    $comment->comment_content = format_to_edit( $comment->comment_content );
    406407    $comment->comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content);
    407     $comment->comment_content = apply_filters( 'comment_text', $comment->comment_content );
    408408
    409409    $comment->comment_author = format_to_edit( $comment->comment_author );
Note: See TracChangeset for help on using the changeset viewer.