Administration: Use consistent spacing for form elements in the Discussion Settings screen.
Props sagarjadhav. Fixes #31594. git-svn-id: https://develop.svn.wordpress.org/trunk@40779 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6da8500524
commit
746d3c23c4
|
@ -71,7 +71,10 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
|||
|
||||
<label for="close_comments_for_old_posts">
|
||||
<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')); ?> />
|
||||
<?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" />'); ?>
|
||||
<?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" />'
|
||||
); ?>
|
||||
</label>
|
||||
<br />
|
||||
<label for="thread_comments">
|
||||
|
@ -86,7 +89,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
|||
*/
|
||||
$maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 );
|
||||
|
||||
$thread_comments_depth = '</label><label for="thread_comments_depth"><select name="thread_comments_depth" id="thread_comments_depth">';
|
||||
$thread_comments_depth = '</label> <label for="thread_comments_depth"><select name="thread_comments_depth" id="thread_comments_depth">';
|
||||
for ( $i = 2; $i <= $maxdeep; $i++ ) {
|
||||
$thread_comments_depth .= "<option value='" . esc_attr($i) . "'";
|
||||
if ( get_option('thread_comments_depth') == $i ) $thread_comments_depth .= " selected='selected'";
|
||||
|
@ -101,15 +104,17 @@ printf( __('Enable threaded (nested) comments %s levels deep'), $thread_comments
|
|||
<label for="page_comments">
|
||||
<input name="page_comments" type="checkbox" id="page_comments" value="1" <?php checked( '1', get_option( 'page_comments' ) ); ?> />
|
||||
<?php
|
||||
$default_comments_page = '</label><label for="default_comments_page"><select name="default_comments_page" id="default_comments_page"><option value="newest"';
|
||||
$default_comments_page = '</label> <label for="default_comments_page"><select name="default_comments_page" id="default_comments_page"><option value="newest"';
|
||||
if ( 'newest' == get_option('default_comments_page') ) $default_comments_page .= ' selected="selected"';
|
||||
$default_comments_page .= '>' . __('last') . '</option><option value="oldest"';
|
||||
if ( 'oldest' == get_option('default_comments_page') ) $default_comments_page .= ' selected="selected"';
|
||||
$default_comments_page .= '>' . __('first') . '</option></select>';
|
||||
|
||||
/* translators: 1: Form field control for number of top level comments per page, 2: Form field control for the 'first' or 'last' page */
|
||||
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 );
|
||||
|
||||
printf(
|
||||
/* translators: 1: Form field control for number of top level comments per page, 2: Form field control for the 'first' or 'last' page */
|
||||
__( '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
|
||||
);
|
||||
?></label>
|
||||
<br />
|
||||
<label for="comment_order"><?php
|
||||
|
|
Loading…
Reference in New Issue