Skip to content

Commit d52e945

Browse files
committed
Editor: Update the blocks on the sample page to the latest HTML.
This changeset updates the Quote Blocks HTML markup of the default sample page, to avoid unecessary migration (and the related console information) when loading its content in the editor. Props wildworks, abcd95, audrasjb, ankitkumarshah. Fixes #63176. git-svn-id: https://develop.svn.wordpress.org/trunk@60111 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 772c8c7 commit d52e945

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wp-admin/includes/upgrade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,20 +315,20 @@ function wp_install_defaults( $user_id ) {
315315
$first_page .= __( "This is an example page. It's different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:" );
316316
$first_page .= "</p>\n<!-- /wp:paragraph -->\n\n";
317317

318-
$first_page .= "<!-- wp:quote -->\n<blockquote class=\"wp-block-quote\"><p>";
318+
$first_page .= "<!-- wp:quote -->\n<blockquote class=\"wp-block-quote\">\n<!-- wp:paragraph -->\n<p>";
319319
/* translators: First page content. */
320320
$first_page .= __( "Hi there! I'm a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like pi&#241;a coladas. (And gettin' caught in the rain.)" );
321-
$first_page .= "</p></blockquote>\n<!-- /wp:quote -->\n\n";
321+
$first_page .= "</p>\n<!-- /wp:paragraph -->\n</blockquote>\n<!-- /wp:quote -->\n\n";
322322

323323
$first_page .= "<!-- wp:paragraph -->\n<p>";
324324
/* translators: First page content. */
325325
$first_page .= __( '...or something like this:' );
326326
$first_page .= "</p>\n<!-- /wp:paragraph -->\n\n";
327327

328-
$first_page .= "<!-- wp:quote -->\n<blockquote class=\"wp-block-quote\"><p>";
328+
$first_page .= "<!-- wp:quote -->\n<blockquote class=\"wp-block-quote\">\n<!-- wp:paragraph -->\n<p>";
329329
/* translators: First page content. */
330330
$first_page .= __( 'The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.' );
331-
$first_page .= "</p></blockquote>\n<!-- /wp:quote -->\n\n";
331+
$first_page .= "</p>\n<!-- /wp:paragraph -->\n</blockquote>\n<!-- /wp:quote -->\n\n";
332332

333333
$first_page .= "<!-- wp:paragraph -->\n<p>";
334334
$first_page .= sprintf(

0 commit comments

Comments
 (0)