-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quote: Rename the align attribute to textAlign (#42960)
* Quote: Rename align attribute to textAlign --------- Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: dcalhoun <dpcalhoun@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org> Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org> Co-authored-by: SiobhyB <siobhyb@git.wordpress.org> Co-authored-by: oandregal <oandregal@git.wordpress.org>
- Loading branch information
Showing
14 changed files
with
217 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/integration/fixtures/blocks/core__quote__deprecated-2.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
test/integration/fixtures/blocks/core__quote__deprecated-4-align-attribute.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!-- wp:quote {"align":"right"} --> | ||
<blockquote class="wp-block-quote has-text-align-right"><!-- wp:paragraph --> | ||
<p>Quote with the align attribute. Example: {"align":"right"}</p> | ||
<!-- /wp:paragraph --></blockquote> | ||
<!-- /wp:quote --> |
22 changes: 22 additions & 0 deletions
22
test/integration/fixtures/blocks/core__quote__deprecated-4-align-attribute.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[ | ||
{ | ||
"name": "core/quote", | ||
"isValid": true, | ||
"attributes": { | ||
"value": "", | ||
"citation": "", | ||
"textAlign": "right" | ||
}, | ||
"innerBlocks": [ | ||
{ | ||
"name": "core/paragraph", | ||
"isValid": true, | ||
"attributes": { | ||
"content": "Quote with the align attribute. Example: {\"align\":\"right\"}", | ||
"dropCap": false | ||
}, | ||
"innerBlocks": [] | ||
} | ||
] | ||
} | ||
] |
25 changes: 25 additions & 0 deletions
25
test/integration/fixtures/blocks/core__quote__deprecated-4-align-attribute.parsed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[ | ||
{ | ||
"blockName": "core/quote", | ||
"attrs": { | ||
"align": "right" | ||
}, | ||
"innerBlocks": [ | ||
{ | ||
"blockName": "core/paragraph", | ||
"attrs": {}, | ||
"innerBlocks": [], | ||
"innerHTML": "\n<p>Quote with the align attribute. Example: {\"align\":\"right\"}</p>\n", | ||
"innerContent": [ | ||
"\n<p>Quote with the align attribute. Example: {\"align\":\"right\"}</p>\n" | ||
] | ||
} | ||
], | ||
"innerHTML": "\n<blockquote class=\"wp-block-quote has-text-align-right\"></blockquote>\n", | ||
"innerContent": [ | ||
"\n<blockquote class=\"wp-block-quote has-text-align-right\">", | ||
null, | ||
"</blockquote>\n" | ||
] | ||
} | ||
] |
5 changes: 5 additions & 0 deletions
5
test/integration/fixtures/blocks/core__quote__deprecated-4-align-attribute.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!-- wp:quote {"textAlign":"right"} --> | ||
<blockquote class="wp-block-quote has-text-align-right"><!-- wp:paragraph --> | ||
<p>Quote with the align attribute. Example: {"align":"right"}</p> | ||
<!-- /wp:paragraph --></blockquote> | ||
<!-- /wp:quote --> |