Changeset 19296
- Timestamp:
- 11/15/2011 02:02:42 PM (13 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/comment.php
r19121 r19296 70 70 comment_footer_die( __('This comment is in the Trash. Please move it out of the Trash if you want to edit it.') ); 71 71 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 72 75 $comment = get_comment_to_edit( $comment_id ); 73 76 -
trunk/wp-admin/includes/class-wp-comments-list-table.php
r18868 r19296 412 412 } 413 413 414 if ( ' trash' != $the_comment_status ) {414 if ( 'spam' != $the_comment_status && 'trash' != $the_comment_status ) { 415 415 $actions['edit'] = "<a href='comment.php?action=editcomment&c={$comment->comment_ID}' title='" . esc_attr__( 'Edit comment' ) . "'>". __( 'Edit' ) . '</a>'; 416 416 $actions['quickedit'] = '<a onclick="commentReply.open( \''.$comment->comment_ID.'\',\''.$post->ID.'\',\'edit\' );return false;" class="vim-q" title="'.esc_attr__( 'Quick Edit' ).'" href="#">' . __( 'Quick 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>'; 419 418 } 420 419
Note: See TracChangeset
for help on using the changeset viewer.