WordPress / WordPress/create-block-theme

Fails to localise background image in Cover block with fixed or repeat background

Open
#748 1 comment 0 reactions 1 assignee View on GitHub

@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.

Image

Image

Image

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.