mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Customize: Rename "Static front page" to just "Homepage".
Props danieltj, melchoyce. Fixes #41828. Built from https://develop.svn.wordpress.org/trunk@41363 git-svn-id: http://core.svn.wordpress.org/trunk@41196 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
317d36668b
commit
a74e98d7be
@ -35,7 +35,7 @@ $wp_file_descriptions = array(
|
|||||||
'singular.php' => __( 'Singular Template' ),
|
'singular.php' => __( 'Singular Template' ),
|
||||||
'single.php' => __( 'Single Post' ),
|
'single.php' => __( 'Single Post' ),
|
||||||
'page.php' => __( 'Single Page' ),
|
'page.php' => __( 'Single Page' ),
|
||||||
'front-page.php' => __( 'Static Front Page' ),
|
'front-page.php' => __( 'Static Homepage' ),
|
||||||
// Attachments
|
// Attachments
|
||||||
'attachment.php' => __( 'Attachment Template' ),
|
'attachment.php' => __( 'Attachment Template' ),
|
||||||
'image.php' => __( 'Image Attachment Template' ),
|
'image.php' => __( 'Image Attachment Template' ),
|
||||||
|
@ -21,7 +21,7 @@ get_current_screen()->add_help_tab( array(
|
|||||||
'id' => 'overview',
|
'id' => 'overview',
|
||||||
'title' => __('Overview'),
|
'title' => __('Overview'),
|
||||||
'content' => '<p>' . __('This screen contains the settings that affect the display of your content.') . '</p>' .
|
'content' => '<p>' . __('This screen contains the settings that affect the display of your content.') . '</p>' .
|
||||||
'<p>' . sprintf(__('You can choose what’s displayed on the front page of your site. It can be posts in reverse chronological order (classic blog), or a fixed/static page. To set a static home page, you first need to create two <a href="%s">Pages</a>. One will become the front page, and the other will be where your posts are displayed.'), 'post-new.php?post_type=page') . '</p>' .
|
'<p>' . sprintf(__('You can choose what’s displayed on the homepage of your site. It can be posts in reverse chronological order (classic blog), or a fixed/static page. To set a static homepage, you first need to create two <a href="%s">Pages</a>. One will become the homepage, and the other will be where your posts are displayed.'), 'post-new.php?post_type=page') . '</p>' .
|
||||||
'<p>' . __('You can also control the display of your content in RSS feeds, including the maximum number of posts to display and whether to show full text or a summary.') . '</p>' .
|
'<p>' . __('You can also control the display of your content in RSS feeds, including the maximum number of posts to display and whether to show full text or a summary.') . '</p>' .
|
||||||
'<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>',
|
'<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>',
|
||||||
) );
|
) );
|
||||||
@ -67,8 +67,8 @@ else :
|
|||||||
?>
|
?>
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Front page displays' ); ?></th>
|
<th scope="row"><?php _e( 'Your homepage displays' ); ?></th>
|
||||||
<td id="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Front page displays' ); ?></span></legend>
|
<td id="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Your homepage displays' ); ?></span></legend>
|
||||||
<p><label>
|
<p><label>
|
||||||
<input name="show_on_front" type="radio" value="posts" class="tog" <?php checked( 'posts', get_option( 'show_on_front' ) ); ?> />
|
<input name="show_on_front" type="radio" value="posts" class="tog" <?php checked( 'posts', get_option( 'show_on_front' ) ); ?> />
|
||||||
<?php _e( 'Your latest posts' ); ?>
|
<?php _e( 'Your latest posts' ); ?>
|
||||||
@ -80,7 +80,7 @@ else :
|
|||||||
</label>
|
</label>
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><label for="page_on_front"><?php printf( __( 'Front page: %s' ), wp_dropdown_pages( array( 'name' => 'page_on_front', 'echo' => 0, 'show_option_none' => __( '— Select —' ), 'option_none_value' => '0', 'selected' => get_option( 'page_on_front' ) ) ) ); ?></label></li>
|
<li><label for="page_on_front"><?php printf( __( 'Homepage: %s' ), wp_dropdown_pages( array( 'name' => 'page_on_front', 'echo' => 0, 'show_option_none' => __( '— Select —' ), 'option_none_value' => '0', 'selected' => get_option( 'page_on_front' ) ) ) ); ?></label></li>
|
||||||
<li><label for="page_for_posts"><?php printf( __( 'Posts page: %s' ), wp_dropdown_pages( array( 'name' => 'page_for_posts', 'echo' => 0, 'show_option_none' => __( '— Select —' ), 'option_none_value' => '0', 'selected' => get_option( 'page_for_posts' ) ) ) ); ?></label></li>
|
<li><label for="page_for_posts"><?php printf( __( 'Posts page: %s' ), wp_dropdown_pages( array( 'name' => 'page_for_posts', 'echo' => 0, 'show_option_none' => __( '— Select —' ), 'option_none_value' => '0', 'selected' => get_option( 'page_for_posts' ) ) ) ); ?></label></li>
|
||||||
</ul>
|
</ul>
|
||||||
<?php if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) == get_option( 'page_on_front' ) ) : ?>
|
<?php if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) == get_option( 'page_on_front' ) ) : ?>
|
||||||
|
@ -4112,9 +4112,9 @@ final class WP_Customize_Manager {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$this->add_section( 'static_front_page', array(
|
$this->add_section( 'static_front_page', array(
|
||||||
'title' => __( 'Static Front Page' ),
|
'title' => __( 'Homepage Settings' ),
|
||||||
'priority' => 120,
|
'priority' => 120,
|
||||||
'description' => __( 'Your theme supports a static front page.' ),
|
'description' => __( 'Your theme supports a static homepage.' ),
|
||||||
'active_callback' => array( $this, 'has_published_pages' ),
|
'active_callback' => array( $this, 'has_published_pages' ),
|
||||||
) );
|
) );
|
||||||
|
|
||||||
@ -4125,7 +4125,7 @@ final class WP_Customize_Manager {
|
|||||||
) );
|
) );
|
||||||
|
|
||||||
$this->add_control( 'show_on_front', array(
|
$this->add_control( 'show_on_front', array(
|
||||||
'label' => __( 'Front page displays' ),
|
'label' => __( 'Your homepage displays' ),
|
||||||
'section' => 'static_front_page',
|
'section' => 'static_front_page',
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'choices' => array(
|
'choices' => array(
|
||||||
@ -4140,7 +4140,7 @@ final class WP_Customize_Manager {
|
|||||||
) );
|
) );
|
||||||
|
|
||||||
$this->add_control( 'page_on_front', array(
|
$this->add_control( 'page_on_front', array(
|
||||||
'label' => __( 'Front page' ),
|
'label' => __( 'Homepage' ),
|
||||||
'section' => 'static_front_page',
|
'section' => 'static_front_page',
|
||||||
'type' => 'dropdown-pages',
|
'type' => 'dropdown-pages',
|
||||||
'allow_addition' => true,
|
'allow_addition' => true,
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-41362';
|
$wp_version = '4.9-alpha-41363';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user