| 1 | Index: wp-admin/options-discussion.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/options-discussion.php (revision 21321) |
|---|
| 4 | +++ wp-admin/options-discussion.php (working copy) |
|---|
| 5 | @@ -71,15 +71,15 @@ |
|---|
| 6 | |
|---|
| 7 | <label for="close_comments_for_old_posts"> |
|---|
| 8 | <input name="close_comments_for_old_posts" type="checkbox" id="close_comments_for_old_posts" value="1" <?php checked('1', get_option('close_comments_for_old_posts')); ?> /> |
|---|
| 9 | -<?php printf( __('Automatically close comments on articles older than %s days'), '</label><input name="close_comments_days_old" type="number" min="0" step="1" id="close_comments_days_old" value="' . esc_attr(get_option('close_comments_days_old')) . '" class="small-text" />'); ?> |
|---|
| 10 | -<br /> |
|---|
| 11 | +<?php printf( __('Automatically close comments on articles older than %s days'), '<input name="close_comments_days_old" type="number" min="0" step="1" id="close_comments_days_old" value="' . esc_attr(get_option('close_comments_days_old')) . '" class="small-text" />'); ?> |
|---|
| 12 | +</label><br /> |
|---|
| 13 | <label for="thread_comments"> |
|---|
| 14 | <input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked('1', get_option('thread_comments')); ?> /> |
|---|
| 15 | <?php |
|---|
| 16 | |
|---|
| 17 | $maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 ); |
|---|
| 18 | |
|---|
| 19 | -$thread_comments_depth = '</label><select name="thread_comments_depth" id="thread_comments_depth">'; |
|---|
| 20 | +$thread_comments_depth = '<select name="thread_comments_depth" id="thread_comments_depth">'; |
|---|
| 21 | for ( $i = 2; $i <= $maxdeep; $i++ ) { |
|---|
| 22 | $thread_comments_depth .= "<option value='" . esc_attr($i) . "'"; |
|---|
| 23 | if ( get_option('thread_comments_depth') == $i ) $thread_comments_depth .= " selected='selected'"; |
|---|
| 24 | @@ -89,7 +89,7 @@ |
|---|
| 25 | |
|---|
| 26 | printf( __('Enable threaded (nested) comments %s levels deep'), $thread_comments_depth ); |
|---|
| 27 | |
|---|
| 28 | -?><br /> |
|---|
| 29 | +?></label><br /> |
|---|
| 30 | <label for="page_comments"> |
|---|
| 31 | <input name="page_comments" type="checkbox" id="page_comments" value="1" <?php checked('1', get_option('page_comments')); ?> /> |
|---|
| 32 | <?php |
|---|