WordPress.org

Make WordPress Core

Ticket #31594: 31594.diff

File 31594.diff, 3.6 KB (added by afercia, 12 months ago)
  • src/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><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" />'); ?>
     74<?php printf(
     75        __( 'Automatically close comments on articles older than %s days' ),
     76        '</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" />'
     77); ?>
    7578</label>
    7679<br />
    7780<label for="thread_comments">
     
    8689 */
    8790$maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 );
    8891
    89 $thread_comments_depth = '</label><label for="thread_comments_depth"><select name="thread_comments_depth" id="thread_comments_depth">';
     92$thread_comments_depth = '</label> <label for="thread_comments_depth"><select name="thread_comments_depth" id="thread_comments_depth">';
    9093for ( $i = 2; $i <= $maxdeep; $i++ ) {
    9194        $thread_comments_depth .= "<option value='" . esc_attr($i) . "'";
    9295        if ( get_option('thread_comments_depth') == $i ) $thread_comments_depth .= " selected='selected'";
     
    101104<label for="page_comments">
    102105<input name="page_comments" type="checkbox" id="page_comments" value="1" <?php checked( '1', get_option( 'page_comments' ) ); ?> />
    103106<?php
    104 $default_comments_page = '</label><label for="default_comments_page"><select name="default_comments_page" id="default_comments_page"><option value="newest"';
     107$default_comments_page = '</label> <label for="default_comments_page"><select name="default_comments_page" id="default_comments_page"><option value="newest"';
    105108if ( 'newest' == get_option('default_comments_page') ) $default_comments_page .= ' selected="selected"';
    106109$default_comments_page .= '>' . __('last') . '</option><option value="oldest"';
    107110if ( 'oldest' == get_option('default_comments_page') ) $default_comments_page .= ' selected="selected"';
    108111$default_comments_page .= '>' . __('first') . '</option></select>';
    109 
    110 /* translators: 1: Form field control for number of top level comments per page, 2: Form field control for the 'first' or 'last' page */
    111 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" step="1" min="0" id="comments_per_page" value="' . esc_attr(get_option('comments_per_page')) . '" class="small-text" />', $default_comments_page );
    112 
     112printf(
     113        /* translators: 1: Form field control for number of top level comments per page, 2: Form field control for the 'first' or 'last' page */
     114        __( 'Break comments into pages with %1$s top level comments per page and the %2$s page displayed by default' ),
     115        '</label> <label for="comments_per_page"><input name="comments_per_page" type="number" step="1" min="0" id="comments_per_page" value="' . esc_attr( get_option( 'comments_per_page' ) ) . '" class="small-text" />',
     116        $default_comments_page
     117);
    113118?></label>
    114119<br />
    115120<label for="comment_order"><?php