Make WordPress Core


Ignore:
Timestamp:
11/15/2011 02:02:42 PM (14 years ago)
Author:
ryan
Message:

Don't show edit links for spam comments. Props DH-Shredder. fixes #18340

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-comments-list-table.php

    r18868 r19296  
    412412            }
    413413
    414             if ( 'trash' != $the_comment_status ) {
     414            if ( 'spam' != $the_comment_status && 'trash' != $the_comment_status ) {
    415415                $actions['edit'] = "<a href='comment.php?action=editcomment&amp;c={$comment->comment_ID}' title='" . esc_attr__( 'Edit comment' ) . "'>". __( 'Edit' ) . '</a>';
    416416                $actions['quickedit'] = '<a onclick="commentReply.open( \''.$comment->comment_ID.'\',\''.$post->ID.'\',\'edit\' );return false;" class="vim-q" title="'.esc_attr__( 'Quick Edit' ).'" href="#">' . __( 'Quick&nbsp;Edit' ) . '</a>';
    417                 if ( 'spam' != $the_comment_status )
    418                     $actions['reply'] = '<a onclick="commentReply.open( \''.$comment->comment_ID.'\',\''.$post->ID.'\' );return false;" class="vim-r" title="'.esc_attr__( 'Reply to this comment' ).'" href="#">' . __( 'Reply' ) . '</a>';
     417                $actions['reply'] = '<a onclick="commentReply.open( \''.$comment->comment_ID.'\',\''.$post->ID.'\' );return false;" class="vim-r" title="'.esc_attr__( 'Reply to this comment' ).'" href="#">' . __( 'Reply' ) . '</a>';
    419418            }
    420419
Note: See TracChangeset for help on using the changeset viewer.