WordPress / WordPress/create-block-theme
Replace urls using `site_url()`
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 417
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
When using the plugin on local development where the domain won't match the final production domain, we have found ourselves having to manually replace href's.
It would be nice to have an option where the plugin does a search-and-replace for the local URL with just <?php echo esc_url( site_url() ); ?> or something similar.
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
The issue does not name files, tests, or an entry point. First locate the plugin's URL handling and generated theme output, then clarify where the replacement option belongs; done means local URLs are replaced with escaped site_url() PHP output without manual href edits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- tooling, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100