Ticket #17863: discussion.diff
File discussion.diff, 3.3 KB (added by , 13 years ago) |
---|
-
wp-admin/options-discussion.php
66 66 67 67 <label for="close_comments_for_old_posts"> 68 68 <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')); ?> /> 69 <?php printf( __('Automatically close comments on articles older than %s days'), '</label><input name="close_comments_days_old" type=" text" id="close_comments_days_old" value="' . esc_attr(get_option('close_comments_days_old')) . '" class="small-text" />') ?>69 <?php printf( __('Automatically close comments on articles older than %s days'), '</label><input name="close_comments_days_old" type="number" min="1" id="close_comments_days_old" value="' . esc_attr(get_option('close_comments_days_old')) . '" class="small-text" />') ?> 70 70 <br /> 71 71 <label for="thread_comments"> 72 72 <input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked('1', get_option('thread_comments')); ?> /> … … 95 95 if ( 'oldest' == get_option('default_comments_page') ) $default_comments_page .= ' selected="selected"'; 96 96 $default_comments_page .= '>' . __('first') . '</option></select>'; 97 97 98 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 );98 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="number" min="1" id="comments_per_page" value="' . esc_attr(get_option('comments_per_page')) . '" class="small-text" />', $default_comments_page ); 99 99 100 100 ?></label> 101 101 <br /> … … 137 137 <tr valign="top"> 138 138 <th scope="row"><?php _e('Comment Moderation') ?></th> 139 139 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Moderation') ?></span></legend> 140 <p><label for="comment_max_links"><?php printf(__('Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type=" text" id="comment_max_links" value="' . esc_attr(get_option('comment_max_links')) . '" class="small-text" />' ) ?></label></p>140 <p><label for="comment_max_links"><?php printf(__('Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="number" min="1" id="comment_max_links" value="' . esc_attr(get_option('comment_max_links')) . '" class="small-text" />' ) ?></label></p> 141 141 142 142 <p><label for="moderation_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP per line. It will match inside words, so “press” will match “WordPress”.') ?></label></p> 143 143 <p>