WordPress.org

Make WordPress Core

Changeset 21746


Ignore:
Timestamp:
09/04/12 21:05:06 (20 months ago)
Author:
ryan
Message:

Add labels for all inputs in options-discussion. Props SergeyBiryukov, lessbloat, Latz. fixes #21373

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-discussion.php

    r20202 r21746  
    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"> 
     
    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) . "'"; 
     
    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')); ?> /> 
Note: See TracChangeset for help on using the changeset viewer.