Hide the Reply button if no js and fix some HTML validation problems. Props nbachiyski, see #7435

git-svn-id: https://develop.svn.wordpress.org/trunk@8765 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2008-08-28 22:09:56 +00:00
parent c0ab8b59d7
commit faa46dd672
2 changed files with 4 additions and 4 deletions

View File

@@ -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 );