Make WordPress Core


Ignore:
Timestamp:
01/31/2005 04:22:01 AM (21 years ago)
Author:
saxmatt
Message:

Moderation confirmation from Ryan, some other template and comment editing improvements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r2122 r2165  
    430430    $content = format_to_edit($content);
    431431    $content = apply_filters('comment_edit_pre', $content);
     432   
     433    $comment_status = $commentdata['comment_approved'];
    432434
    433435    include('edit-form-comment.php');
     
    586588    $newcomment_author_email = $_POST['newcomment_author_email'];
    587589    $newcomment_author_url = $_POST['newcomment_author_url'];
     590    $comment_status = $_POST['comment_status'];
    588591
    589592    if (!user_can_edit_post_comments($user_ID, $comment_post_ID)) {
     
    613616            comment_author = '$newcomment_author',
    614617            comment_author_email = '$newcomment_author_email',
     618            comment_approved = '$comment_status',
    615619            comment_author_url = '$newcomment_author_url'".$datemodif."
    616620        WHERE comment_ID = $comment_ID"
Note: See TracChangeset for help on using the changeset viewer.