Make WordPress Core


Ignore:
Timestamp:
10/08/2008 05:24:25 AM (17 years ago)
Author:
azaozz
Message:

Comment status on edit comment page: change drop-down to radio buttons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-comment.php

    r9032 r9099  
    3131<div class="inside-submitbox">
    3232
    33 <p><strong><label for='comment_status'><?php _e('Approval Status') ?></label></strong></p>
    34 <p>
    35 <select name='comment_status' id='comment_status'>
    36 <option<?php selected( $comment->comment_approved, '1' ); ?> value='1'><?php _e('Approved') ?></option>
    37 <option<?php selected( $comment->comment_approved, '0' ); ?> value='0'><?php _e('Awaiting Moderation') ?></option>
    38 <option<?php selected( $comment->comment_approved, 'spam' ); ?> value='spam'><?php _e('Spam') ?></option>
    39 </select>
     33<p><strong><?php _e('Approval Status') ?></strong></p>
     34<p id='comment-status-radio'>
     35<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _e('Approved') ?></label>
     36<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _e('Awaiting Moderation') ?></label>
     37<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _e('Spam') ?></label>
    4038</p>
    4139
     
    7371<div class="inside-submitbox">
    7472
    75 <div class="insidebox"><strong><label for='comment_status'><?php _e('This comment is') ?></label></strong><br />
    76 <select name='comment_status' id='comment_status'>
    77 <option<?php selected( $comment->comment_approved, '1' ); ?> value='1'><?php _e('Approved') ?></option>
    78 <option<?php selected( $comment->comment_approved, '0' ); ?> value='0'><?php _e('Awaiting Moderation') ?></option>
    79 <option<?php selected( $comment->comment_approved, 'spam' ); ?> value='spam'><?php _e('Spam') ?></option>
    80 </select>
     73<div class="insidebox">
     74<div id='comment-status-radio'>
     75<p><strong><?php _e('This comment is') ?></strong></p>
     76<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _e('Approved') ?></label><br />
     77<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _e('Awaiting Moderation') ?></label><br />
     78<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _e('Spam') ?></label>
     79</div>
    8180</div>
    8281
Note: See TracChangeset for help on using the changeset viewer.