-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Post Author Name: Migrate to text-align block support #75109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
|
Size Change: -22 B (0%) Total Size: 3 MB
ℹ️ View Unchanged
|
Fix missing newline at end of file.
|
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. |
What?
Part of #60763
Migrates the
Author Nameblock to use the textAlign block support instead of a customtextAlignattribute. As a consequence it also enables global styles support fortextAlignfor theAuthor Name.Why?
The
Author Nameblock currently implements its own text alignment logic with a custom align attribute, duplicating code that should be handled by the centralizedAuthor Nameblock support. This migration reduces code duplication and consolidates alignment handling across blocks.How?
Replaces the custom logic with the block supports, adds deprecation and fixes transforms.
Testing Instructions
Author Nameblock and test text alignment (left, center, right)Author Nameblocks that have alignment set