WordPress / WordPress/Documentation-Issue-Tracker
Comma in JSON example code missing
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 109
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Description
Issue Description
There is a comma missing in the example code of the "Blocks" section of the theme handbook.
URL of the Page with the Issue
https://developer.wordpress.org/themes/global-settings-and-styles/settings/blocks/
Section of Page with the issue
Blocks
Why is this a problem?
Without this comma the color palettes won't be shown correctly.
Suggested Fix
Just add a comma between color and blocks within the example JSON:
{ "version": 2, "settings": { "color": { "palette": [ { "color": "#0284c7", "name": "Base", "slug": "base" }, { "color": "#ffffff", "name": "Contrast", "slug": "contrast" } ] }, "blocks": { "core/cover": { "color": { "palette": [ { "color": "#ea580c", "name": "Base", "slug": "base" }, { "color": "#fff7ed", "name": "Contrast", "slug": "contrast" } ] } } } } }
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the linked theme handbook page and navigate to the Blocks section. Check the example JSON around the color and blocks settings, add the missing comma, and verify that the example is valid JSON and displays the color palettes correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- json
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100