-
Notifications
You must be signed in to change notification settings - Fork 357
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
Adding setting to enable/disable custom page templates #2923
Adding setting to enable/disable custom page templates #2923
Conversation
…arker1005/paid-memberships-pro into enable-page-template-settings
includes/page-templates.php
Outdated
?> | ||
</p> | ||
<div class="notice notice-error pmpro_notification pmpro_notification-error"> | ||
<button type="button" class="pmpro-notice-button notice-dismiss" value="hide_pause_notification"><span class="screen-reader-text"><?php esc_html_e( 'Dismiss this notice.', 'paid-memberships-pro' ); ?></span></button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we aren't going to allow dismiss in the banner, we should delete this close button.
Since this page can get long, we should duplicate the save settings button in all the section boxes. If we don't like that approach, we instead need to move the button outside the last box. |
Pushed those changes, thank you! |
…arker1005/paid-memberships-pro into enable-page-template-settings
All Submissions:
Changes proposed in this Pull Request:
Added a setting to the Page Settings page that allows admins to choose to:
By default, this is set to only using custom page templates that have versions that match the core page template versions. This should help to avoid issues where sites update to the newest version of PMPro and functionality on frontend pages breaks as a result.
For sites that are using a theme or 3rd party plugin that includes custom page templates, this can also protect them from authors that do not update their page templates or allow them to avoid using those templates for any other reason.
For sites that have built their own template and are ok being responsible for keeping them up to date, they can choose to always use page templates, regardless of version.
Other information:
Changelog entry