wip
This commit is contained in:
@@ -81,17 +81,14 @@ else :
|
||||
if ( 'page' === get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) ) {
|
||||
update_option( 'show_on_front', 'posts' );
|
||||
}
|
||||
|
||||
$your_homepage_displays_title = __( 'Your homepage displays' );
|
||||
?>
|
||||
<table class="form-table" role="presentation">
|
||||
<tr>
|
||||
<th scope="row"><?php _e( 'Your homepage displays' ); ?></th>
|
||||
<th scope="row"><?php echo $your_homepage_displays_title; ?></th>
|
||||
<td id="front-static-pages"><fieldset>
|
||||
<legend class="screen-reader-text"><span>
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( 'Your homepage displays' );
|
||||
?>
|
||||
</span></legend>
|
||||
<legend class="screen-reader-text"><span><?php echo $your_homepage_displays_title; ?></span></legend>
|
||||
<p><label>
|
||||
<input name="show_on_front" type="radio" value="posts" class="tog" <?php checked( 'posts', get_option( 'show_on_front' ) ); ?> />
|
||||
<?php _e( 'Your latest posts' ); ?>
|
||||
@@ -179,15 +176,12 @@ else :
|
||||
<th scope="row"><label for="posts_per_rss"><?php _e( 'Syndication feeds show the most recent' ); ?></label></th>
|
||||
<td><input name="posts_per_rss" type="number" step="1" min="1" id="posts_per_rss" value="<?php form_option( 'posts_per_rss' ); ?>" class="small-text" /> <?php _e( 'items' ); ?></td>
|
||||
</tr>
|
||||
|
||||
<?php $rss_use_excerpt_title = __( 'For each post in a feed, include' ); ?>
|
||||
<tr>
|
||||
<th scope="row"><?php _e( 'For each post in a feed, include' ); ?> </th>
|
||||
<th scope="row"><?php echo $rss_use_excerpt_title; ?> </th>
|
||||
<td><fieldset>
|
||||
<legend class="screen-reader-text"><span>
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( 'For each post in a feed, include' );
|
||||
?>
|
||||
</span></legend>
|
||||
<legend class="screen-reader-text"><span><?php echo $rss_use_excerpt_title; ?></span></legend>
|
||||
<p>
|
||||
<label><input name="rss_use_excerpt" type="radio" value="0" <?php checked( 0, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Full text' ); ?></label><br />
|
||||
<label><input name="rss_use_excerpt" type="radio" value="1" <?php checked( 1, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Excerpt' ); ?></label>
|
||||
@@ -204,18 +198,11 @@ else :
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
|
||||
<?php $blog_privacy_selector_title = has_action( 'blog_privacy_selector' ) ? __( 'Site visibility' ) : __( 'Search engine visibility' ); ?>
|
||||
<tr class="option-site-visibility">
|
||||
<th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?> </th>
|
||||
<th scope="row"><?php echo $blog_privacy_selector_title; ?> </th>
|
||||
<td><fieldset>
|
||||
<legend class="screen-reader-text"><span>
|
||||
<?php
|
||||
has_action( 'blog_privacy_selector' )
|
||||
/* translators: Hidden accessibility text. */
|
||||
? _e( 'Site visibility' )
|
||||
/* translators: Hidden accessibility text. */
|
||||
: _e( 'Search engine visibility' );
|
||||
?>
|
||||
</span></legend>
|
||||
<legend class="screen-reader-text"><span><?php echo $blog_privacy_selector_title; ?></span></legend>
|
||||
<?php if ( has_action( 'blog_privacy_selector' ) ) : ?>
|
||||
<input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( '1', get_option( 'blog_public' ) ); ?> />
|
||||
<label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br />
|
||||
|
||||
Reference in New Issue
Block a user