diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 4d21e1b0ef..755a57a45b 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -2,144 +2,35 @@ $title = 'Edit Comments'; $parent_file = 'edit.php'; require_once('admin-header.php'); - -if (!$showcomments) { - if ($comments_per_page) { - $showcomments=$comments_per_page; - } else { - $showcomments=10; - $comments_per_page=$showcomments; - } -} else { - $comments_per_page = $showcomments; -} - -if ((!empty($commentstart)) && (!empty($commentend)) && ($commentstart == $commentend)) { - $p=$commentstart; - $commentstart=0; - $commentend=0; -} - -if (!$commentstart) { - $commentstart=0; - $commentend=$showcomments; -} - -$nextXstart=$commentend; -$nextXend=$commentend+$showcomments; - -$previousXstart=($commentstart-$showcomments); -$previousXend=$commentstart; -if ($previousXstart < 0) { - $previousXstart=0; - $previousXend=$showcomments; -} - -ob_start(); ?>
- Show comments: - | -
-
|
- |||
- - | -- - | -
Your Drafts: - +
Your Drafts: + ID' title='Edit this draft'>$draft->post_title"; ++$i; } - ?>.
-- Show posts: - | -
-
|
- |||
- - | -- - | -
- - | -- - | -- - | -
ID | +When | +Title | +Categories | +Comments | +Author | +Edit | +Delete | +
---|---|---|---|---|---|---|---|
+ | g:i:s a'); ?> | ++ + + post_status) echo ' - Private'; ?> | ++ | + + | ++ | $authordata->user_level) or ($user_login == $authordata->user_login)) { echo "Edit"; } ?> | +$authordata->user_level) or ($user_login == $authordata->user_login)) { echo "Delete"; } ?> | +
No posts found. | +
- — (), in
- - - get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id ORDER BY comment_date"); - if ($comments) { - ?> - -
Comments
-- - - --
- comment_ID);
-
- if ("unapproved" == $comment_status) {
- echo "";
- }
- ?>
- @
- $authordata->user_level) or ($user_login == $authordata->user_login)) {
- echo "[ comment_ID."\">Edit";
- echo " - ID."&comment=".$comment->comment_ID."\" onclick=\"return confirm('You are about to delete this comment by \'".$comment->comment_author."\'\\n \'OK\' to delete, \'Cancel\' to stop.')\">Delete ";
- if ( ('none' != $comment_status) && ($user_level >= 3) ) {
- if ('approved' == wp_get_comment_status($comment->comment_ID)) {
- echo " - ID."&comment=".$comment->comment_ID."\">Unapprove ";
- } else {
- echo " - ID."&comment=".$comment->comment_ID."\">Approve ";
- }
- }
- echo "]";
- } // end if any comments to show
- ?>
-
-
-
- ';
- }//end if comments
- if ($comment_error)
- echo "
- - - -- ( / ) (IP: ) - - "; - } - ?> -
Error: please fill the required fields (name & comment)
"; - ?> - -Leave Comment
- - - - -- - -
- No results found. -
- - ++ + + ( + + / + + ) (IP: + + ) + +