Make WordPress Core


Ignore:
Timestamp:
07/17/2005 07:29:55 PM (20 years ago)
Author:
ryan
Message:

Cap migration.

File:
1 edited

Legend:

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

    r2714 r2720  
    77
    88$_GET['m'] = (int) $_GET['m'];
    9 
    10 get_currentuserinfo();
    119
    1210$drafts = get_users_drafts( $user_ID );
     
    256254                echo "[ <a href=\"post.php?action=editcomment&amp;comment=".$comment->comment_ID."\">" .  __('Edit') . "</a>";
    257255                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> ";
    258                 if ( ('none' != $comment_status) && ($user_level >= 3) ) {
     256                if ( ('none' != $comment_status) && ( current_user_can('moderate_comments') ) ) {
    259257                    if ('approved' == wp_get_comment_status($comment->comment_ID)) {
    260258                        echo " - <a href=\"post.php?action=unapprovecomment&amp;p=".$post->ID."&amp;comment=".$comment->comment_ID."\">" . __('Unapprove') . "</a> ";
Note: See TracChangeset for help on using the changeset viewer.