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

Props Clorith.
Fixes #48130.

git-svn-id: https://develop.svn.wordpress.org/trunk@46457 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling 2019-10-10 19:05:57 +00:00
parent 70b408c8fe
commit 7a682e690e

View File

@ -2191,17 +2191,26 @@ function get_theme_starter_content() {
'home' => array( 'home' => array(
'post_type' => 'page', 'post_type' => 'page',
'post_title' => _x( 'Home', 'Theme starter content' ), 'post_title' => _x( 'Home', 'Theme starter content' ),
'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' ), 'post_content' => sprintf(
"<!-- wp:paragraph -->\n<p>%s</p>\n<!-- /wp:paragraph -->",
_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' )
),
), ),
'about' => array( 'about' => array(
'post_type' => 'page', 'post_type' => 'page',
'post_title' => _x( 'About', 'Theme starter content' ), 'post_title' => _x( 'About', 'Theme starter content' ),
'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' ), 'post_content' => sprintf(
"<!-- wp:paragraph -->\n<p>%s</p>\n<!-- /wp:paragraph -->",
_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' )
),
), ),
'contact' => array( 'contact' => array(
'post_type' => 'page', 'post_type' => 'page',
'post_title' => _x( 'Contact', 'Theme starter content' ), 'post_title' => _x( 'Contact', 'Theme starter content' ),
'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' ), 'post_content' => sprintf(
"<!-- wp:paragraph -->\n<p>%s</p>\n<!-- /wp:paragraph -->",
_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' )
),
), ),
'blog' => array( 'blog' => array(
'post_type' => 'page', 'post_type' => 'page',
@ -2215,7 +2224,10 @@ function get_theme_starter_content() {
'homepage-section' => array( 'homepage-section' => array(
'post_type' => 'page', 'post_type' => 'page',
'post_title' => _x( 'A homepage section', 'Theme starter content' ), 'post_title' => _x( 'A homepage section', 'Theme starter content' ),
'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' ), 'post_content' => sprintf(
"<!-- wp:paragraph -->\n<p>%s</p>\n<!-- /wp:paragraph -->",
_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' )
),
), ),
), ),
); );