WordPress / WordPress/create-block-theme
Fails to localise background image in Cover block with fixed or repeat background
Open
@matiasbenedetto is already working on this.
Since Nov 27, 2024.
bug
- Dominant language
- JavaScript
- Stars
- 417
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
When one of the settings or both is enabled, CBT fails to localise the image path in a Cover block even if the localised image option is on.
For example,
http://localhost.local/wp-content/uploads/2024/09/image.jpg should become <?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/image.jpg, but it stays the absolute path in this case.
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.
Assessment
This issue has not been assessed yet.