Ticket #21373: 21373.2.diff
| File 21373.2.diff, 2.3 KB (added by , 14 years ago) |
|---|
-
wp-admin/options-discussion.php
71 71 72 72 <label for="close_comments_for_old_posts"> 73 73 <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')); ?> /> 74 <?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" />'); ?> 74 <?php _e('Automatically close comments on articles older than '); ?></label> 75 <label for="close_comments_days_old"> 76 <?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" />'); ?> 77 </label> 75 78 <br /> 76 79 <label for="thread_comments"> 77 80 <input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked('1', get_option('thread_comments')); ?> /> 81 <?php _e('Enable threaded (nested) comments '); ?> 82 </label> 83 <label for="thread_comments_depth"> 78 84 <?php 79 80 85 $maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 ); 81 86 82 $thread_comments_depth = '< /label><select name="thread_comments_depth" id="thread_comments_depth">';87 $thread_comments_depth = '<select name="thread_comments_depth" id="thread_comments_depth">'; 83 88 for ( $i = 2; $i <= $maxdeep; $i++ ) { 84 89 $thread_comments_depth .= "<option value='" . esc_attr($i) . "'"; 85 90 if ( get_option('thread_comments_depth') == $i ) $thread_comments_depth .= " selected='selected'"; 86 91 $thread_comments_depth .= ">$i</option>"; 87 92 } 88 $thread_comments_depth .= '</select>'; 89 90 printf( __('Enable threaded (nested) comments %s levels deep'), $thread_comments_depth ); 91 92 ?><br /> 93 $thread_comments_depth .= '</select>';?> 94 <?php printf( __('%s levels deep'), $thread_comments_depth );?> 95 </label> 96 <br /> 93 97 <label for="page_comments"> 94 98 <input name="page_comments" type="checkbox" id="page_comments" value="1" <?php checked('1', get_option('page_comments')); ?> /> 95 99 <?php