summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-admin/edit.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-07-15 11:12:16 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-07-15 11:12:16 +0000
commit8a682722d1b64ba299997ff3f6099db353fab43a (patch)
treef5e794047b9e92676e44100cedb7848297a9600b /wp-inst/wp-admin/edit.php
parenteb69639d667f0c15130e26e79e06fd6f891f3936 (diff)
downloadwordpress-mu-8a682722d1b64ba299997ff3f6099db353fab43a.tar.gz
wordpress-mu-8a682722d1b64ba299997ff3f6099db353fab43a.tar.xz
wordpress-mu-8a682722d1b64ba299997ff3f6099db353fab43a.zip
Merge from WP SVN.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@27 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/edit.php')
-rw-r--r--wp-inst/wp-admin/edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-inst/wp-admin/edit.php b/wp-inst/wp-admin/edit.php
index 052540f..daef277 100644
--- a/wp-inst/wp-admin/edit.php
+++ b/wp-inst/wp-admin/edit.php
@@ -252,7 +252,7 @@ $comment_status = wp_get_comment_status($comment->comment_ID);
@
<?php comment_time('g:m:s a') ?>
<?php
- if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) {
+ 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) ) {