~canonical-sysadmins/wordpress/3.9.x

« back to all changes in this revision

Viewing changes to wp-admin/options-discussion.php

  • Committer: Chris Jones
  • Date: 2010-01-19 13:17:33 UTC
  • Revision ID: cmsj@tenshu.net-20100119131733-rf31jv9k1v0xzo2h
[CJ] Import wordpress 2.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
$maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 );
67
67
 
68
68
$thread_comments_depth = '</label><select name="thread_comments_depth" id="thread_comments_depth">';
69
 
for ( $i = 1; $i <= $maxdeep; $i++ ) {
 
69
for ( $i = 2; $i <= $maxdeep; $i++ ) {
70
70
        $thread_comments_depth .= "<option value='" . esc_attr($i) . "'";
71
71
        if ( get_option('thread_comments_depth') == $i ) $thread_comments_depth .= " selected='selected'";
72
72
        $thread_comments_depth .= ">$i</option>";
86
86
if ( 'oldest' == get_option('default_comments_page') ) $default_comments_page .= ' selected="selected"';
87
87
$default_comments_page .= '>' . __('first') . '</option></select>';
88
88
 
89
 
printf( __('Break comments into pages with %1$s comments per page and the %2$s page displayed by default'), '</label><label for="comments_per_page"><input name="comments_per_page" type="text" id="comments_per_page" value="' . esc_attr(get_option('comments_per_page')) . '" class="small-text" />', $default_comments_page );
 
89
printf( __('Break comments into pages with %1$s top level comments per page and the %2$s page displayed by default'), '</label><label for="comments_per_page"><input name="comments_per_page" type="text" id="comments_per_page" value="' . esc_attr(get_option('comments_per_page')) . '" class="small-text" />', $default_comments_page );
90
90
 
91
91
?></label>
92
92
<br />