Add XML file for blocks, for WordPress 6.4#85
Merged
Conversation
Author
|
( Oops I forgot to create a separate branch, because I mistakingly tried to create the pull requests on Garys repository first. ) |
joyously
reviewed
Feb 16, 2024
kafleg
reviewed
Feb 16, 2024
Member
kafleg
left a comment
There was a problem hiding this comment.
Looks good to me. Import is successful without any error.
justintadlock
approved these changes
Feb 16, 2024
justintadlock
left a comment
There was a problem hiding this comment.
Overall, this looks pretty good. Imported with no issue. Lots of variety in testing content.
I did have an issue with the Author Biography post because the bio text wasn't appearing on the front end, but this is because I didn't have bio text in my test install (I assigned the imported posts to my admin account). Not sure how to address that other than make a note of it in the docs.
Author
|
Yeah the importer plugins doesn't use the author description. |
carolinan
commented
Feb 19, 2024
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Partial for #83
I started with blocks generated on WordPress 6.4, so that they can be compared to the changes in 6.5.
The file includes a "how to" page that explains some more details:
How to use the test data
The purpose of this test data is to test block changes across WordPress versions and Gutenberg versions. It is a compliment to the other theme test data files.
A use case would be when you want to test the typography options of a block, and you don’t want to spend time adding the blocks and changing all the settings manually.
The blocks were generated using WordPress 6.4.3 with a block theme with the most permissive theme.json settings possible. All presets are the defaults: Colors, duotones, font sizes, spacing sizes, shadows, width etc.
Each block has its own post, and is listed under its category: Design, Theme, Widget etc.
Inner blocks such as the column, button, and comment blocks do not have their own posts.
Blocks that support borders have a tag called “Border”.
Setting up
Download the file, activate the WordPress importer plugin and import the file.
Tips for testing
When you use block themes with different settings and templates, or a classic theme, you may find that not everything works as you expected. This is not necessarily a bug with the block, the theme, or the test file. If you suspect that there are bugs, it will require further testing.
For example:
What’s not included
Experimental blocks
Template only blocks
What it is not intended for
How you can help
You can help by reporting bugs, writing documentation, requesting features and submitting updates in the GitHub repository: https://github.com/WordPress/theme-test-data