WordPress / WordPress/create-block-theme

Create Block Theme: Theme tags are incorrectly capitalized when saving a theme

Open
#818 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
417
Forks
66
PR merge metrics
No merged PRs in 30d

Description

Problem

When saving a theme using the Create Block Theme plugin, some WordPress theme tags are output with capitalized letters — for example Blog, Block-Styles, RTL-Language-Support — instead of the correct lowercase, hyphenated format (blog, block-styles, rtl-language-support). This causes the tags to be invalid or unrecognized in the WordPress theme directory, and fails the formatting conventions expected in style.css theme headers.

Steps to Reproduce

  • Set up a theme with tags via the Create Block Theme interface
  • Add more tags to the theme through the style.css file
  • Save the theme using Create Block Theme
  • Check style.css and inspect the tags
  • Note incorrectly capitalized tag values (e.g., blog becomes Blog).

Expected Behavior

All theme tags are written in lowercase with hyphens, matching the WordPress theme directory format — e.g. blog, block-styles, rtl-language-support, threaded-comments, translation-ready.

Actual Behavior

Some or all tags are capitalized or inconsistently cased in the output.

Environment

Plugin: Create Block Theme
File affected: style.css (theme header)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the theme-saving path that writes the style.css theme header, using the reported capitalization examples as reproduction cases. Confirm the saved tags use lowercase letters and hyphens, including blog, block-styles, rtl-language-support, threaded-comments, and translation-ready.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.