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

Update id to match page template #1836

Merged
merged 2 commits into from Aug 9, 2022

Conversation

IanDelMar
Copy link
Contributor

@IanDelMar IanDelMar commented Jul 25, 2022

For consistency, adds a page template specific ID for the wrapper in the no-title page template.

Copy link
Member

@bacoords bacoords left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to also match the HTML comment on line 51?

?>

<div class="wrapper" id="full-width-page-wrapper">
<div class="wrapper" id="<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?>">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reasoning for not just using esc_attr() here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We know that we will never have to escape the attribute. It's either 'full-width-page-wrapper' or 'no-title-page-wrapper'. Calling esc_attr() just adds a call without any benefit.

@IanDelMar
Copy link
Contributor Author

Do we need to also match the HTML comment on line 51?

Updated the HTML comment

@bacoords bacoords merged commit 5f6457d into understrap:feature/landing-page-template Aug 9, 2022
@IanDelMar IanDelMar deleted the id branch August 9, 2022 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants