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

@ -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>
@ -263,4 +263,4 @@ if ( $page_links )
<?php
wp_comment_reply('-1', true, 'detail');
include('admin-footer.php'); ?>
include('admin-footer.php'); ?>

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