Make WordPress Core

Changeset 41363


Ignore:
Timestamp:
09/10/2017 04:19:53 PM (7 years ago)
Author:
westonruter
Message:

Customize: Rename "Static front page" to just "Homepage".

Props danieltj, melchoyce.
Fixes #41828.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r41258 r41363  
    3636    'single.php'            => __( 'Single Post' ),
    3737    'page.php'              => __( 'Single Page' ),
    38     'front-page.php'        => __( 'Static Front Page' ),
     38    'front-page.php'        => __( 'Static Homepage' ),
    3939    // Attachments
    4040    'attachment.php'        => __( 'Attachment Template' ),
  • trunk/src/wp-admin/options-reading.php

    r40540 r41363  
    2222    'title'   => __('Overview'),
    2323    'content' => '<p>' . __('This screen contains the settings that affect the display of your content.') . '</p>' .
    24         '<p>' . sprintf(__('You can choose what&#8217;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>' .
     24        '<p>' . sprintf(__('You can choose what&#8217;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>' .
    2525        '<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>' .
    2626        '<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>',
     
    6868<table class="form-table">
    6969<tr>
    70 <th scope="row"><?php _e( 'Front page displays' ); ?></th>
    71 <td id="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Front page displays' ); ?></span></legend>
     70<th scope="row"><?php _e( 'Your homepage displays' ); ?></th>
     71<td id="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Your homepage displays' ); ?></span></legend>
    7272    <p><label>
    7373        <input name="show_on_front" type="radio" value="posts" class="tog" <?php checked( 'posts', get_option( 'show_on_front' ) ); ?> />
     
    8181    </p>
    8282<ul>
    83     <li><label for="page_on_front"><?php printf( __( 'Front page: %s' ), wp_dropdown_pages( array( 'name' => 'page_on_front', 'echo' => 0, 'show_option_none' => __( '&mdash; Select &mdash;' ), 'option_none_value' => '0', 'selected' => get_option( 'page_on_front' ) ) ) ); ?></label></li>
     83    <li><label for="page_on_front"><?php printf( __( 'Homepage: %s' ), wp_dropdown_pages( array( 'name' => 'page_on_front', 'echo' => 0, 'show_option_none' => __( '&mdash; Select &mdash;' ), 'option_none_value' => '0', 'selected' => get_option( 'page_on_front' ) ) ) ); ?></label></li>
    8484    <li><label for="page_for_posts"><?php printf( __( 'Posts page: %s' ), wp_dropdown_pages( array( 'name' => 'page_for_posts', 'echo' => 0, 'show_option_none' => __( '&mdash; Select &mdash;' ), 'option_none_value' => '0', 'selected' => get_option( 'page_for_posts' ) ) ) ); ?></label></li>
    8585</ul>
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r41355 r41363  
    41134113
    41144114        $this->add_section( 'static_front_page', array(
    4115             'title' => __( 'Static Front Page' ),
     4115            'title' => __( 'Homepage Settings' ),
    41164116            'priority' => 120,
    4117             'description' => __( 'Your theme supports a static front page.' ),
     4117            'description' => __( 'Your theme supports a static homepage.' ),
    41184118            'active_callback' => array( $this, 'has_published_pages' ),
    41194119        ) );
     
    41264126
    41274127        $this->add_control( 'show_on_front', array(
    4128             'label' => __( 'Front page displays' ),
     4128            'label' => __( 'Your homepage displays' ),
    41294129            'section' => 'static_front_page',
    41304130            'type' => 'radio',
     
    41414141
    41424142        $this->add_control( 'page_on_front', array(
    4143             'label' => __( 'Front page' ),
     4143            'label' => __( 'Homepage' ),
    41444144            'section' => 'static_front_page',
    41454145            'type' => 'dropdown-pages',
Note: See TracChangeset for help on using the changeset viewer.