WordPress / WordPress/create-block-theme

Limit theme slug renaming to just slugs

Open
#569 1 comment 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

When exporting the theme without applying translations or asset localization, the name of existing theme assets are changed.

  • Clone the theme "Adventurer"
  • Note that one of the assets used has the string "adventurer" in it. The reference to that asset in the patterns is changed to the NEW slug, though the file is not changed.

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

Reproduce the export using the “Adventurer” theme and an asset whose name contains “adventurer.” Trace the export path that replaces theme slugs when translations and asset localization are disabled. Done means pattern references retain the existing asset name while the theme slug is renamed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.