Make WordPress Core


Ignore:
Timestamp:
05/25/2007 10:33:48 PM (17 years ago)
Author:
markjaquith
Message:

attribute_escape()s and int casts for 2.0.x: see #4333

File:
1 edited

Legend:

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

    r5406 r5550  
    320320    $comment = get_comment($id);
    321321
     322    $comment->comment_ID = (int) $comment->comment_ID;
     323    $comment->comment_post_ID = (int) $comment->comment_post_ID;
     324
    322325    $comment->comment_content = format_to_edit($comment->comment_content, $richedit);
    323326    $comment->comment_content = apply_filters('comment_edit_pre', $comment->comment_content);
     327    $comment->comment_content = apply_filters( 'comment_text', $comment->comment_content );
    324328
    325329    $comment->comment_author = format_to_edit($comment->comment_author);
    326330    $comment->comment_author_email = format_to_edit($comment->comment_author_email);
     331    $comment->comment_author_url = clean_url($comment->comment_author_url);
    327332    $comment->comment_author_url = format_to_edit($comment->comment_author_url);
    328333
     
    863868        $entry['meta_key'] = attribute_escape( $entry['meta_key']);
    864869        $entry['meta_value'] = attribute_escape( $entry['meta_value']);
     870        $entry['meta_id'] = (int) $entry['meta_id'];
    865871        echo "
    866872            <tr class='$style'>
Note: See TracChangeset for help on using the changeset viewer.