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:
parent
5e025c2031
commit
c4919d8603
|
@ -174,11 +174,11 @@ if ( $page_links )
|
|||
|
||||
<div class="alignleft">
|
||||
<select name="action">
|
||||
<option value="" selected><?php _e('Actions') ?></option>
|
||||
<option value="" selected="selected"><?php _e('Actions') ?></option>
|
||||
<?php if ( 'approved' == $comment_status ): ?>
|
||||
<option value="unapprove"><?php _e('Unapprove'); ?></option>
|
||||
<?php else : ?>
|
||||
<option value="approve"><?php _e('Approve'); ?>
|
||||
<option value="approve"><?php _e('Approve'); ?></option>
|
||||
<?php endif; ?>
|
||||
<?php if ( 'spam' != $comment_status ): ?>
|
||||
<option value="markspam"><?php _e('Mark as Spam'); ?></option>
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue