Author block: When recreating, migrate the textAlign attribute of the Author block to the block style attribute.#75153
Conversation
| createBlock( 'core/post-author-name', { textAlign } ), | ||
| }, | ||
| ], | ||
| to: [ |
There was a problem hiding this comment.
Since the Author block is a deprecated block #55352 , it is not possible to migrate from the Author Name block to the Author block.
|
Size Change: -18 B (0%) Total Size: 3 MB
ℹ️ View Unchanged
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
…hen migrating. (#75153) Co-authored-by: shimotmk <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: t-hamano <[email protected]>
…hen migrating. (#75153) Co-authored-by: shimotmk <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: t-hamano <[email protected]>
What?
The
textAlignattributes ofpost-author-biographyandpost-author-namehave been moved into thestyle > typographyobject.#74997 #75109
How?
Adjust this so that when the Recreate button is pressed, the new attribute format is applied.
Testing Instructions
<!-- wp:post-author {"textAlign":"center","showBio":true,"byline":"byline"} /-->Testing Instructions for Keyboard
Screenshots or screencast
post-author.mp4