WordPress.org

Make WordPress Core

Ticket #2807: 2807.diff

File 2807.diff, 1.4 KB (added by tenpura, 14 years ago)

patch for /branches/2.0/

  • edit-comments.php

     
    9898        <p><?php _e('Posted'); echo ' '; comment_date('M j, g:i A'); 
    9999                        if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
    100100                                echo " | <a href=\"post.php?action=editcomment&amp;comment=".$comment->comment_ID."\">" . __('Edit Comment') . "</a>";
    101                                 echo ' | <a href="' . wp_nonce_url('post.php?action=deletecomment&amp;p=' . $post->ID . '&amp;comment=' . $comment->comment_ID, 'delete-comment_' . $comment->comment_ID) . '" onclick="return deleteSomething( \'comment\', ' . $comment->comment_ID . ', \'' . __("You are about to delete this comment.\\n&quot;Cancel&quot; to stop, &quot;OK&quot; to delete.") . "' );\">" . __('Delete Comment') . '</a> ';
     101                                echo ' | <a href="' . wp_nonce_url('post.php?action=deletecomment&amp;p=' . $comment->comment_post_ID . '&amp;comment=' . $comment->comment_ID, 'delete-comment_' . $comment->comment_ID) . '" onclick="return deleteSomething( \'comment\', ' . $comment->comment_ID . ', \'' . __("You are about to delete this comment.\\n&quot;Cancel&quot; to stop, &quot;OK&quot; to delete.") . "' );\">" . __('Delete Comment') . '</a> ';
    102102                        } // end if any comments to show
    103103                        // Get post title
    104104                        if ( current_user_can('edit_post', $comment->comment_post_ID) ) {