Changeset 9206
- Timestamp:
- 10/16/2008 08:03:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-discussion.php
r9149 r9206 44 44 <label for="close_comments_for_old_posts"> 45 45 <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')); ?> /> 46 <?php _e('Close comments on articles older than') ?></label> <?php printf(__('%s days'), '<input name="close_comments_days_old" type="text" id="close_comments_days_old" value="' . attribute_escape(get_option('close_comments_days_old')) . '" size="3" />') ?>46 <?php printf( __('Close comments on articles older than %s days'), '</label><input name="close_comments_days_old" type="text" id="close_comments_days_old" value="' . attribute_escape(get_option('close_comments_days_old')) . '" size="3" />') ?> 47 47 <br /> 48 48 <label for="thread_comments"> 49 49 <input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked('1', get_option('thread_comments')); ?> /> 50 <?php _e('Group replies into threads') ?></label> <?php printf(__('%s levels deep'), '<input name="thread_comments_depth" type="text" id="thread_comments_depth" value="' . attribute_escape(get_option('thread_comments_depth')) . '" size="3" />') ?> 51 <br /> 50 <?php 51 52 $maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 ); 53 54 $thread_comments_depth = '</label><select name="thread_comments_depth" id="thread_comments_depth">'; 55 for ( $i = 1; $i <= $maxdeep; $i++ ) { 56 $thread_comments_depth .= "<option value='$i'"; 57 if ( get_option('thread_comments_depth') == $i ) $thread_comments_depth .= " selected='selected'"; 58 $thread_comments_depth .= ">$i</option>"; 59 } 60 $thread_comments_depth .= '</select>'; 61 62 printf( __('Enable threaded (nested) comments %s levels deep'), $thread_comments_depth ); 63 64 ?><br /> 52 65 <label for="page_comments"> 53 66 <input name="page_comments" type="checkbox" id="page_comments" value="1" <?php checked('1', get_option('page_comments')); ?> /> 54 <?php _e('Break comments into pages with') ?></label> <?php printf(__('%s comments per page'), '<input name="comments_per_page" type="text" id="comments_per_page" value="' . attribute_escape(get_option('comments_per_page')) . '" size="3" />') ?>67 <?php printf( __('Break comments into pages with %s comments per page'), '</label><input name="comments_per_page" type="text" id="comments_per_page" value="' . attribute_escape(get_option('comments_per_page')) . '" size="3" />') ?> 55 68 <br /> 56 69 <small><em><?php echo '(' . __('These settings may be overridden for individual articles.') . ')'; ?></em></small>
Note: See TracChangeset
for help on using the changeset viewer.