Allow IP comment search to search spam if initiated from spam page. props vladimir_kolesnikov. fixes #8394

git-svn-id: https://develop.svn.wordpress.org/trunk@10143 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2008-12-09 12:31:41 +00:00
parent 3bdf883c22
commit 2c9d6c5946
1 changed files with 4 additions and 1 deletions

View File

@ -2059,7 +2059,10 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true,
}
echo '<a href="edit-comments.php?s=';
comment_author_IP();
echo '&amp;mode=detail">';
echo '&amp;mode=detail';
if ( 'spam' == $comment_status )
echo '&amp;comment_status=spam';
echo '">';
comment_author_IP();
echo '</a>';
} //current_user_can