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

git-svn-id: http://svn.automattic.com/wordpress/trunk@10143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2008-12-09 12:31:41 +00:00
parent 91082d58b1
commit fc9076f6e9

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