summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-admin/edit.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-07-18 09:16:34 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-07-18 09:16:34 +0000
commit3d22aa49e07b92dab07b1f9d6a8a66fb6ab20bdc (patch)
tree1bc483947163c7351f73b2c62a69ef774e021775 /wp-inst/wp-admin/edit.php
parent9d3f6c7b7452785bd585424238dd29f9d7369480 (diff)
downloadwordpress-mu-3d22aa49e07b92dab07b1f9d6a8a66fb6ab20bdc.tar.gz
wordpress-mu-3d22aa49e07b92dab07b1f9d6a8a66fb6ab20bdc.tar.xz
wordpress-mu-3d22aa49e07b92dab07b1f9d6a8a66fb6ab20bdc.zip
Merge from WP Core.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@31 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/edit.php')
-rw-r--r--wp-inst/wp-admin/edit.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/wp-inst/wp-admin/edit.php b/wp-inst/wp-admin/edit.php
index daef277..4440742 100644
--- a/wp-inst/wp-admin/edit.php
+++ b/wp-inst/wp-admin/edit.php
@@ -7,8 +7,6 @@ require_once('admin-header.php');
$_GET['m'] = (int) $_GET['m'];
-get_currentuserinfo();
-
$drafts = get_users_drafts( $user_ID );
$other_drafts = get_others_drafts( $user_ID);
@@ -255,7 +253,7 @@ $comment_status = wp_get_comment_status($comment->comment_ID);
if ( current_user_can('edit_post', $post->ID) ) {
echo "[ <a href=\"post.php?action=editcomment&amp;comment=".$comment->comment_ID."\">" . __('Edit') . "</a>";
echo " - <a href=\"post.php?action=deletecomment&amp;p=".$post->ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return confirm('" . sprintf(__("You are about to delete this comment by \'%s\'\\n \'OK\' to delete, \'Cancel\' to stop."), $comment->comment_author) . "')\">" . __('Delete') . "</a> ";
- if ( ('none' != $comment_status) && ($user_level >= 3) ) {
+ if ( ('none' != $comment_status) && ( current_user_can('moderate_comments') ) ) {
if ('approved' == wp_get_comment_status($comment->comment_ID)) {
echo " - <a href=\"post.php?action=unapprovecomment&amp;p=".$post->ID."&amp;comment=".$comment->comment_ID."\">" . __('Unapprove') . "</a> ";
} else {