Hide the Reply button if no js and fix some HTML validation problems. Props nbachiyski, see #7435
git-svn-id: http://svn.automattic.com/wordpress/trunk@8765 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1034,7 +1034,7 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true
|
||||
}
|
||||
|
||||
if ( 'spam' != $the_comment_status )
|
||||
$actions['reply'] = ' | <a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$post->ID.'\',this);return false;" title="'.__('Reply to this comment').'" href="#">' . __('Reply') . '</a>';
|
||||
$actions['reply'] = '<span class="hide-if-no-js"> | <a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$post->ID.'\',this);return false;" title="'.__('Reply to this comment').'" href="#">' . __('Reply') . '</a></span>';
|
||||
|
||||
$actions = apply_filters( 'comment_row_actions', $actions, $comment );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user