WordPress.org

Make WordPress Core

Changeset 39260


Ignore:
Timestamp:
11/16/16 00:28:27 (5 months ago)
Author:
helen
Message:

Theme starter content: Refine the content for pages.

see #38615.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/functions.php

    r39255 r39260  
    123123        'posts' => array( 
    124124            'home', 
    125             'about-us', 
    126             'contact-us', 
     125            'about', 
     126            'contact', 
    127127            'blog', 
    128128            'homepage-section', 
     
    137137        'theme_mods' => array( 
    138138            'panel_1' => '{{homepage-section}}', 
    139             'panel_2' => '{{about-us}}', 
     139            'panel_2' => '{{about}}', 
    140140            'panel_3' => '{{blog}}', 
    141             'panel_4' => '{{contact-us}}', 
     141            'panel_4' => '{{contact}}', 
    142142        ), 
    143143 
  • trunk/src/wp-includes/theme.php

    r39256 r39260  
    18531853                'type' => 'post_type', 
    18541854                'object' => 'page', 
    1855                 'object_id' => '{{about-us}}', 
     1855                'object_id' => '{{about}}', 
    18561856            ), 
    18571857            'page_blog' => array( 
     
    18601860                'object_id' => '{{blog}}', 
    18611861            ), 
     1862            'page_news' => array( 
     1863                'type' => 'post_type', 
     1864                'object' => 'page', 
     1865                'object_id' => '{{news}}', 
     1866            ), 
    18621867            'page_contact' => array( 
    18631868                'type' => 'post_type', 
    18641869                'object' => 'page', 
    1865                 'object_id' => '{{contact-us}}', 
     1870                'object_id' => '{{contact}}', 
    18661871            ), 
    18671872 
     
    19101915            'home' => array( 
    19111916                'post_type' => 'page', 
    1912                 'post_title' => _x( 'Homepage', 'Theme starter content' ), 
    1913                 'post_content' => _x( 'Welcome home.', 'Theme starter content' ), 
     1917                'post_title' => _x( 'Home', 'Theme starter content' ), 
     1918                'post_content' => _x( 'Welcome to your site! This is your homepage, which is what most visitors will see when they come to your site for the first time.', 'Theme starter content' ), 
    19141919            ), 
    1915             'about-us' => array( 
     1920            'about' => array( 
    19161921                'post_type' => 'page', 
    1917                 'post_title' => _x( 'About Us', 'Theme starter content' ), 
    1918                 'post_content' => _x( 'More than you ever wanted to know.', 'Theme starter content' ), 
     1922                'post_title' => _x( 'About', 'Theme starter content' ), 
     1923                'post_content' => _x( 'You might be an artist who would like to introduce yourself and your work here or maybe you’re a business with a mission to describe.', 'Theme starter content' ), 
    19191924            ), 
    1920             'contact-us' => array( 
     1925            'contact' => array( 
    19211926                'post_type' => 'page', 
    1922                 'post_title' => _x( 'Contact Us', 'Theme starter content' ), 
    1923                 'post_content' => _x( 'Call us at 999-999-9999.', 'Theme starter content' ), 
     1927                'post_title' => _x( 'Contact', 'Theme starter content' ), 
     1928                'post_content' => _x( 'This is a page with some basic contact information, such as an address and phone number. You might also try a plugin to add a contact form.', 'Theme starter content' ), 
    19241929            ), 
    19251930            'blog' => array( 
     
    19271932                'post_title' => _x( 'Blog', 'Theme starter content' ), 
    19281933            ), 
     1934            'news' => array( 
     1935                'post_type' => 'page', 
     1936                'post_title' => _x( 'News', 'Theme starter content' ), 
     1937            ), 
    19291938 
    19301939            'homepage-section' => array( 
    19311940                'post_type' => 'page', 
    19321941                'post_title' => _x( 'A homepage section', 'Theme starter content' ), 
    1933                 'post_content' => _x( 'This is an example of a homepage section, which are managed in theme options.', 'Theme starter content' ), 
     1942                'post_content' => _x( 'This is an example of a homepage section. Homepage sections can be any page other than the homepage itself, including the page that shows your latest blog posts.', 'Theme starter content' ), 
    19341943            ), 
    19351944        ), 
Note: See TracChangeset for help on using the changeset viewer.