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

Load Customizer code conditionally #144

Merged
merged 3 commits into from Jun 21, 2017
Merged

Conversation

r-a-y
Copy link
Member

@r-a-y r-a-y commented May 16, 2017

Previously, the Customizer code ran on all pages. The majority of users will never need to load the Customizer code since they do not have access to it.

This PR only loads the Customizer code if a user has the customize capability.

Let me know what you think.

Previously, the Customizer code ran on all pages.  The majority of users
will never need to load the Customizer code since they do not have access
to it.

This commit only loads the Customizer code if a user has the 'customize'
capability.
@hnla
Copy link
Collaborator

hnla commented May 16, 2017

Ok good point, most of the settings are of or for an elevated user type, but we still load the settings and then check I guess we're saying here rather than simply check first then load?

sounds like sensible enhancement, lets merge it - I'll try and run branch later and see if any issues or merge and we'll deal with issue if/when they occur.

@r-a-y r-a-y merged commit 3a58503 into master Jun 21, 2017
@r-a-y r-a-y deleted the load-customizer-conditionally branch June 21, 2017 19:08
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