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/comment.php

    r19121 r19296  
    7070        comment_footer_die( __('This comment is in the Trash. Please move it out of the Trash if you want to edit it.') );
    7171
     72    if ( 'spam' == $comment->comment_approved )
     73        comment_footer_die( __('This comment is marked as Spam. Please mark it as Not Spam if you want to edit it.') );
     74
    7275    $comment = get_comment_to_edit( $comment_id );
    7376
Note: See TracChangeset for help on using the changeset viewer.