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

Assume BP Docs is not enabled unless explicitly enabled. #461

Open
wants to merge 2 commits into
base: 1.8.x
Choose a base branch
from

Conversation

dcavins
Copy link
Collaborator

@dcavins dcavins commented Jun 3, 2015

When BuddyPress Docs, via bp_docs_get_group_settings(), cannot find
the “bp-docs” groupmeta entry for a group, it assumes that the plugin
is active for the group. This causes poor behavior when the groupmeta
doesn’t exist. An example is when the plugin is activated after groups
are created.

Also remove some extra settings checks that are not needed because
default values are set in bp_docs_get_group_settings().

dcavins added 2 commits June 3, 2015 15:23
When BuddyPress Docs, via `bp_docs_get_group_settings()`, cannot find
the “bp-docs” groupmeta entry for a group, it assumes that the plugin
is active for the group. This causes poor behavior when the groupmeta
doesn’t exist. An example is when the plugin is activated after groups
are created.

Also remove some extra settings checks that are not needed because
default values are set in `bp_docs_get_group_settings()`.
When no groupmeta is saved for a group, we assume that bp_docs is
enabled, which seems odd.
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.

1 participant