mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Moderation confirmation from Ryan, some other template and comment editing improvements.
git-svn-id: https://develop.svn.wordpress.org/trunk@2165 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -429,6 +429,8 @@ case 'editcomment':
|
||||
$content = $commentdata['comment_content'];
|
||||
$content = format_to_edit($content);
|
||||
$content = apply_filters('comment_edit_pre', $content);
|
||||
|
||||
$comment_status = $commentdata['comment_approved'];
|
||||
|
||||
include('edit-form-comment.php');
|
||||
|
||||
@@ -585,6 +587,7 @@ case 'editedcomment':
|
||||
$newcomment_author = $_POST['newcomment_author'];
|
||||
$newcomment_author_email = $_POST['newcomment_author_email'];
|
||||
$newcomment_author_url = $_POST['newcomment_author_url'];
|
||||
$comment_status = $_POST['comment_status'];
|
||||
|
||||
if (!user_can_edit_post_comments($user_ID, $comment_post_ID)) {
|
||||
die('You are not allowed to edit comments on this post, so you cannot edit this comment.');
|
||||
@@ -612,6 +615,7 @@ case 'editedcomment':
|
||||
comment_content = '$content',
|
||||
comment_author = '$newcomment_author',
|
||||
comment_author_email = '$newcomment_author_email',
|
||||
comment_approved = '$comment_status',
|
||||
comment_author_url = '$newcomment_author_url'".$datemodif."
|
||||
WHERE comment_ID = $comment_ID"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user