Make WordPress Core

Changeset 46457


Ignore:
Timestamp:
10/10/2019 07:05:57 PM (5 years ago)
Author:
ocean90
Message:

Themes: Convert core-provided starter content to block content.

Props Clorith.
Fixes #48130.

File:
1 edited

Legend:

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

    r46451 r46457  
    21922192                'post_type'    => 'page',
    21932193                'post_title'   => _x( 'Home', 'Theme starter content' ),
    2194                 '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' ),
     2194                'post_content' => sprintf(
     2195                    "<!-- wp:paragraph -->\n<p>%s</p>\n<!-- /wp:paragraph -->",
     2196                    _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' )
     2197                ),
    21952198            ),
    21962199            'about'            => array(
    21972200                'post_type'    => 'page',
    21982201                'post_title'   => _x( 'About', 'Theme starter content' ),
    2199                 'post_content' => _x( 'You might be an artist who would like to introduce yourself and your work here or maybe you&rsquo;re a business with a mission to describe.', 'Theme starter content' ),
     2202                'post_content' => sprintf(
     2203                    "<!-- wp:paragraph -->\n<p>%s</p>\n<!-- /wp:paragraph -->",
     2204                    _x( 'You might be an artist who would like to introduce yourself and your work here or maybe you&rsquo;re a business with a mission to describe.', 'Theme starter content' )
     2205                ),
    22002206            ),
    22012207            'contact'          => array(
    22022208                'post_type'    => 'page',
    22032209                'post_title'   => _x( 'Contact', 'Theme starter content' ),
    2204                 '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' ),
     2210                'post_content' => sprintf(
     2211                    "<!-- wp:paragraph -->\n<p>%s</p>\n<!-- /wp:paragraph -->",
     2212                    _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' )
     2213                ),
    22052214            ),
    22062215            'blog'             => array(
     
    22162225                'post_type'    => 'page',
    22172226                'post_title'   => _x( 'A homepage section', 'Theme starter content' ),
    2218                 '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' ),
     2227                'post_content' => sprintf(
     2228                    "<!-- wp:paragraph -->\n<p>%s</p>\n<!-- /wp:paragraph -->",
     2229                    _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' )
     2230                ),
    22192231            ),
    22202232        ),
Note: See TracChangeset for help on using the changeset viewer.