WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/25/2007 09:41:04 AM (15 years ago)
Author:
ryan
Message:

attribute_escape()s and int casts. see #4333

File:
1 edited

Legend:

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

    r5542 r5543  
    4444    $comment = get_comment( $id );
    4545
     46    $comment->comment_ID = (int) $comment->comment_ID;
     47    $comment->comment_post_ID = (int) $comment->comment_post_ID;
     48
    4649    $comment->comment_content = format_to_edit( $comment->comment_content, user_can_richedit() );
    4750    $comment->comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content);
     51    $comment->comment_content = apply_filters( 'comment_text', $comment->comment_content );
    4852
    4953    $comment->comment_author = format_to_edit( $comment->comment_author );
    5054    $comment->comment_author_email = format_to_edit( $comment->comment_author_email );
     55    $comment->comment_author_url = clean_url($comment->comment_author_url);
    5156    $comment->comment_author_url = format_to_edit( $comment->comment_author_url );
    5257
Note: See TracChangeset for help on using the changeset viewer.