WordPress.org

Make WordPress Core

Ticket #21373: 21373.3.diff

File 21373.3.diff, 2.0 KB (added by SergeyBiryukov, 20 months ago)
  • wp-admin/options-discussion.php

     
    7171 
    7272<label for="close_comments_for_old_posts"> 
    7373<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 printf( __('Automatically close comments on articles older than %s days'), '</label><label for="close_comments_days_old"><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" />'); ?> 
     75</label> 
    7576<br /> 
    7677<label for="thread_comments"> 
    7778<input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked('1', get_option('thread_comments')); ?> /> 
     
    7980 
    8081$maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 ); 
    8182 
    82 $thread_comments_depth = '</label><select name="thread_comments_depth" id="thread_comments_depth">'; 
     83$thread_comments_depth = '</label><label for="thread_comments_depth"><select name="thread_comments_depth" id="thread_comments_depth">'; 
    8384for ( $i = 2; $i <= $maxdeep; $i++ ) { 
    8485        $thread_comments_depth .= "<option value='" . esc_attr($i) . "'"; 
    8586        if ( get_option('thread_comments_depth') == $i ) $thread_comments_depth .= " selected='selected'"; 
     
    8990 
    9091printf( __('Enable threaded (nested) comments %s levels deep'), $thread_comments_depth ); 
    9192 
    92 ?><br /> 
     93?></label> 
     94<br /> 
    9395<label for="page_comments"> 
    9496<input name="page_comments" type="checkbox" id="page_comments" value="1" <?php checked('1', get_option('page_comments')); ?> /> 
    9597<?php