mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Comment status on edit comment page: change drop-down to radio buttons
git-svn-id: https://develop.svn.wordpress.org/trunk@9099 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -30,13 +30,11 @@ function comment_submit_meta_box($comment) { // not used, but keeping for a bit
|
||||
<div class="submitbox" id="submitcomment">
|
||||
<div class="inside-submitbox">
|
||||
|
||||
<p><strong><label for='comment_status'><?php _e('Approval Status') ?></label></strong></p>
|
||||
<p>
|
||||
<select name='comment_status' id='comment_status'>
|
||||
<option<?php selected( $comment->comment_approved, '1' ); ?> value='1'><?php _e('Approved') ?></option>
|
||||
<option<?php selected( $comment->comment_approved, '0' ); ?> value='0'><?php _e('Awaiting Moderation') ?></option>
|
||||
<option<?php selected( $comment->comment_approved, 'spam' ); ?> value='spam'><?php _e('Spam') ?></option>
|
||||
</select>
|
||||
<p><strong><?php _e('Approval Status') ?></strong></p>
|
||||
<p id='comment-status-radio'>
|
||||
<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _e('Approved') ?></label>
|
||||
<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _e('Awaiting Moderation') ?></label>
|
||||
<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _e('Spam') ?></label>
|
||||
</p>
|
||||
|
||||
<div class="insidebox" id="deletebutton">
|
||||
@@ -72,12 +70,13 @@ $time = mysql2date(get_option('time_format'), $comment->comment_date);
|
||||
<div class="submitbox" id="submitcomment">
|
||||
<div class="inside-submitbox">
|
||||
|
||||
<div class="insidebox"><strong><label for='comment_status'><?php _e('This comment is') ?></label></strong><br />
|
||||
<select name='comment_status' id='comment_status'>
|
||||
<option<?php selected( $comment->comment_approved, '1' ); ?> value='1'><?php _e('Approved') ?></option>
|
||||
<option<?php selected( $comment->comment_approved, '0' ); ?> value='0'><?php _e('Awaiting Moderation') ?></option>
|
||||
<option<?php selected( $comment->comment_approved, 'spam' ); ?> value='spam'><?php _e('Spam') ?></option>
|
||||
</select>
|
||||
<div class="insidebox">
|
||||
<div id='comment-status-radio'>
|
||||
<p><strong><?php _e('This comment is') ?></strong></p>
|
||||
<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _e('Approved') ?></label><br />
|
||||
<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _e('Awaiting Moderation') ?></label><br />
|
||||
<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _e('Spam') ?></label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="insidebox" id="deletebutton">
|
||||
|
||||
Reference in New Issue
Block a user