Make WordPress Core


Ignore:
Timestamp:
07/15/2005 02:16:45 AM (21 years ago)
Author:
ryan
Message:

More cap migration.

File:
1 edited

Legend:

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

    r2709 r2714  
    253253  <?php comment_time('g:m:s a') ?>
    254254  <?php
    255             if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) {
     255            if ( current_user_can('edit_post', $post->ID) ) {
    256256                echo "[ <a href=\"post.php?action=editcomment&amp;comment=".$comment->comment_ID."\">" .  __('Edit') . "</a>";
    257257                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> ";
Note: See TracChangeset for help on using the changeset viewer.