Ticket #17863: options-discussion.php.diff
File options-discussion.php.diff, 1011 bytes (added by , 13 years ago) |
---|
-
wp-admin/options-discussion.php
78 78 <?php 79 79 80 80 $maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 ); 81 $thread_comments_depth = "</label><input name='thread_comments_depth' type='number' min='2' max='$maxdeep' step='1' id='thread_comments_depth' value='". get_option('thread_comments_depth') ."' />"; 81 82 82 $thread_comments_depth = '</label><select name="thread_comments_depth" id="thread_comments_depth">';83 for ( $i = 2; $i <= $maxdeep; $i++ ) {84 $thread_comments_depth .= "<option value='" . esc_attr($i) . "'";85 if ( get_option('thread_comments_depth') == $i ) $thread_comments_depth .= " selected='selected'";86 $thread_comments_depth .= ">$i</option>";87 }88 $thread_comments_depth .= '</select>';89 90 83 printf( __('Enable threaded (nested) comments %s levels deep'), $thread_comments_depth ); 91 84 92 85 ?><br />