WordPress.org

Make WordPress Core

Ticket #21373: 21373.diff

File 21373.diff, 2.1 KB (added by Latz, 3 years 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" />'); ?> 
    75 <br /> 
     74<?php printf( __('Automatically close comments on articles older than %1$s %2$s'), '</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" /> ', __('days')); ?> 
     75</label><br /> 
    7676<label for="thread_comments"> 
    7777<input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked('1', get_option('thread_comments')); ?> /> 
    7878<?php 
    7979 
    8080$maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 ); 
    8181 
    82 $thread_comments_depth = '</label><select name="thread_comments_depth" id="thread_comments_depth">'; 
     82$thread_comments_depth = '</label><label for="thread_comments_depth"><select name="thread_comments_depth" id="thread_comments_depth">'; 
    8383for ( $i = 2; $i <= $maxdeep; $i++ ) { 
    8484        $thread_comments_depth .= "<option value='" . esc_attr($i) . "'"; 
    8585        if ( get_option('thread_comments_depth') == $i ) $thread_comments_depth .= " selected='selected'"; 
    8686        $thread_comments_depth .= ">$i</option>"; 
    8787} 
    88 $thread_comments_depth .= '</select>'; 
     88$thread_comments_depth .= '</select> ' . 'levels deep' . '</label>'; 
    8989 
    90 printf( __('Enable threaded (nested) comments %s levels deep'), $thread_comments_depth ); 
     90printf( __('Enable threaded (nested) comments %s'), $thread_comments_depth ); 
    9191 
    9292?><br /> 
    9393<label for="page_comments">