Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Something isn't right when selecting all options in Save Changes to Theme #691

Open
beafialho opened this issue Jul 19, 2024 · 3 comments · May be fixed by #719
Open

Bug: Something isn't right when selecting all options in Save Changes to Theme #691

beafialho opened this issue Jul 19, 2024 · 3 comments · May be fixed by #719
Assignees
Labels
bug Something isn't working [Priority] High

Comments

@beafialho
Copy link

beafialho commented Jul 19, 2024

When I select all the options in Save Changes to theme, this is happening:

Captura de ecrã 2024-07-19, às 10 29 21

The links that have a # are also having an issue with weird text showing up on the front end.

There's also this warning from Theme Check plugin:

WARNING: Found ="<?php esc_html_e in patterns/front-page.php. Use esc_attr_e() inside HTML attributes, and esc_url() for link attributes. A manual review is needed.

Line 36: <figure class='wp-block-image size-full'><img src='<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/mood_1-min.jpg' alt='<?php esc_html_e('', 'cottage');?>'/></figure>
@mikachan mikachan added the bug Something isn't working label Jul 19, 2024
@creativecoder
Copy link
Contributor

I think the warning is coming from this: alt='<?php esc_html_e('', 'cottage');?>'.

We need to update the escaping functionality to correctly use esc_attr_e inside html attributes.

This change is part of #683. I think we should extract that part and land it separately.

@mikachan
Copy link
Member

I think we should extract that part and land it separately.

I agree, that way we can hopefully fix the bug in this issue separately.

@matiasbenedetto
Copy link
Contributor

I'll split the attr part of #683 to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working [Priority] High
Projects
Development

Successfully merging a pull request may close this issue.

5 participants