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

Feature/maybe hide settings section header #236

Merged
merged 3 commits into from
Dec 15, 2022

Conversation

barryceelen
Copy link
Member

Description of the Change

When the "Restrict site access to visitors who are logged in or allowed by IP address" is unselected on the "Reading Settings" admin page, the plugin hides the "Handle restricted visitors" and "Unrestricted IP addresses". The "Restricted Site Access" header however remains visible and confusingly looms over whatever settings come after it.

This update also hides the "Restricted Site Access" settings page header when the "Restrict site access to visitors who are logged in or allowed by IP address" is unselected.

Somewhat unrelated, this update also removes the unused /assets/js/settings.min.js file. This file seems no longer in use: a settings.min.js file is now created in and loaded from the /build folder.

When the "Restrict site access to visitors who are logged in or allowed
by IP address" is unselected on the "Reading Settings" admin page, the
plugin hides the "Handle restricted visitors" and "Unrestricted IP
addresses". The "Restricted Site Access" header however remains visible
and confusingly looms over whatever settings come after it.

This update also hides the "Restricted Site Access" settings page header
when the "Restrict site access to visitors who are logged in or allowed
by IP address" is unselected.
The settings.min.js script is created in, and loaded from the
assets/js/build folder.
@dkotter dkotter added this to the 7.4.0 milestone Dec 14, 2022
Copy link
Member

@Sidsector9 Sidsector9 left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @barryceelen , tested well for me 👍

@Sidsector9 Sidsector9 merged commit f4da733 into develop Dec 15, 2022
@Sidsector9 Sidsector9 deleted the feature/maybe-hide-settings-section-header branch December 15, 2022 09:11
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.

3 participants