Twenty Twenty-One: Correct default image alignment in the editor.

By default, the theme centers images on the front end when no alignment is selected. In the editor, however, images were aligned to the left side of the block.

This commit ensures that the alignment in the editor matches the one on the front end.

Props sabernhardt, ashfame, poena, annezazu.
Fixes #53809.
Built from https://develop.svn.wordpress.org/trunk@52142


git-svn-id: http://core.svn.wordpress.org/trunk@51734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-11-11 19:35:00 +00:00
parent 00403bc675
commit 97f3ab0f2a
4 changed files with 4 additions and 1 deletions

View File

@ -1458,6 +1458,7 @@ h6 {
}
/* Center image block by default in the editor */
.wp-block-image,
.wp-block-image > div {
text-align: center;
}

View File

@ -1127,6 +1127,7 @@ h6,
}
/* Center image block by default in the editor */
.wp-block-image,
.wp-block-image > div {
text-align: center;
}

View File

@ -1,5 +1,6 @@
/* Center image block by default in the editor */
.wp-block-image,
.wp-block-image > div {
text-align: center;
}

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.9-alpha-52141';
$wp_version = '5.9-alpha-52142';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.