| 1 | Index: wp-admin/options-discussion.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/options-discussion.php (revision 21628) |
|---|
| 4 | +++ wp-admin/options-discussion.php (working copy) |
|---|
| 5 | @@ -71,25 +71,29 @@ |
|---|
| 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 | +<?php _e('Automatically close comments on articles older than '); ?></label> |
|---|
| 11 | +<label for="close_comments_days_old"> |
|---|
| 12 | +<?php printf( __('%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" />'); ?> |
|---|
| 13 | +</label> |
|---|
| 14 | <br /> |
|---|
| 15 | <label for="thread_comments"> |
|---|
| 16 | <input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked('1', get_option('thread_comments')); ?> /> |
|---|
| 17 | +<?php _e('Enable threaded (nested) comments '); ?> |
|---|
| 18 | +</label> |
|---|
| 19 | +<label for="thread_comments_depth"> |
|---|
| 20 | <?php |
|---|
| 21 | - |
|---|
| 22 | $maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 ); |
|---|
| 23 | |
|---|
| 24 | -$thread_comments_depth = '</label><select name="thread_comments_depth" id="thread_comments_depth">'; |
|---|
| 25 | +$thread_comments_depth = '<select name="thread_comments_depth" id="thread_comments_depth">'; |
|---|
| 26 | for ( $i = 2; $i <= $maxdeep; $i++ ) { |
|---|
| 27 | $thread_comments_depth .= "<option value='" . esc_attr($i) . "'"; |
|---|
| 28 | if ( get_option('thread_comments_depth') == $i ) $thread_comments_depth .= " selected='selected'"; |
|---|
| 29 | $thread_comments_depth .= ">$i</option>"; |
|---|
| 30 | } |
|---|
| 31 | -$thread_comments_depth .= '</select>'; |
|---|
| 32 | - |
|---|
| 33 | -printf( __('Enable threaded (nested) comments %s levels deep'), $thread_comments_depth ); |
|---|
| 34 | - |
|---|
| 35 | -?><br /> |
|---|
| 36 | +$thread_comments_depth .= '</select>';?> |
|---|
| 37 | +<?php printf( __('%s levels deep'), $thread_comments_depth );?> |
|---|
| 38 | +</label> |
|---|
| 39 | +<br /> |
|---|
| 40 | <label for="page_comments"> |
|---|
| 41 | <input name="page_comments" type="checkbox" id="page_comments" value="1" <?php checked('1', get_option('page_comments')); ?> /> |
|---|
| 42 | <?php |
|---|