WordPress / WordPress/create-block-theme

Replace urls using `site_url()`

Open
#805 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.