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

Prevent <section> elements from being broken if no fields are registered for a setting #11

Merged
merged 1 commit into from Aug 21, 2020

Conversation

stevegrunwell
Copy link
Owner

If $wp_settings_fields[$page][$section['id']] isn't set, there's no reason to render the .form-table, but we always need to close the <section> element.

If `$wp_settings_fields[$page][$section['id']]` isn't set, there's no reason to render the `.form-table`, but we *always* need to close the `<section>` element.
@stevegrunwell stevegrunwell added the bug Something isn't working label Aug 21, 2020
@stevegrunwell stevegrunwell changed the title Remove early continue to prevent missing </section> tags Prevent <section> elements from being broken if no fields are registered for a setting Aug 21, 2020
@stevegrunwell stevegrunwell merged commit ba340a0 into develop Aug 21, 2020
@stevegrunwell stevegrunwell deleted the fix/prevent-broken-sections branch August 21, 2020 16:56
@stevegrunwell stevegrunwell mentioned this pull request Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant